We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c9533 commit 4db2ec7Copy full SHA for 4db2ec7
1 file changed
modules/yup_events/native/yup_Messaging_linux.cpp
@@ -338,16 +338,17 @@ bool yup_dispatchNextMessageOnSystemQueue (bool returnIfNoPendingMessages)
338
if (LinuxErrorHandling::keyboardBreakOccurred)
339
YUPApplicationBase::quit();
340
341
- if (auto* runLoop = InternalRunLoop::getInstanceWithoutCreating())
342
- {
343
- if (runLoop->dispatchPendingEvents())
344
- break;
+ auto* runLoop = InternalRunLoop::getInstanceWithoutCreating();
+ if (runLoop == nullptr)
+ return false;
345
346
- if (returnIfNoPendingMessages)
347
- return false;
+ if (runLoop->dispatchPendingEvents())
+ break;
348
349
- runLoop->sleepUntilNextEvent (2000);
350
- }
+ if (returnIfNoPendingMessages)
+
351
+ runLoop->sleepUntilNextEvent (2000);
352
}
353
354
return true;
0 commit comments