From bf555f0fdba547ec793851d480fda9a0c89f13d0 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 24 Mar 2024 14:59:58 +0100 Subject: [PATCH] Force process exit on Android --- client/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/main.cpp b/client/main.cpp index c21e4280..8c3d2204 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -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 }