Force process exit on Android
This commit is contained in:
+2
-1
@@ -126,13 +126,14 @@ void real_main()
|
||||
int events;
|
||||
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.
|
||||
if (source != nullptr)
|
||||
source->process(native_app, source);
|
||||
}
|
||||
}
|
||||
exit(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user