Force process exit on Android
This commit is contained in:
+2
-1
@@ -126,13 +126,14 @@ void real_main()
|
|||||||
int events;
|
int events;
|
||||||
struct android_poll_source * source;
|
struct android_poll_source * source;
|
||||||
|
|
||||||
while (ALooper_pollAll(-1, nullptr, &events, (void **)&source) >= 0)
|
while (ALooper_pollAll(100, nullptr, &events, (void **)&source) >= 0)
|
||||||
{
|
{
|
||||||
// Process this event.
|
// Process this event.
|
||||||
if (source != nullptr)
|
if (source != nullptr)
|
||||||
source->process(native_app, source);
|
source->process(native_app, source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exit(0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user