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 }