Force process exit on Android

This commit is contained in:
Patrick Nicolas
2024-03-24 14:59:58 +01:00
parent 8e3979cc8c
commit bf555f0fdb
+2 -1
View File
@@ -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
} }