aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform/unix/EventLoop.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-24 01:43:15 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-24 01:43:15 +0800
commit62aabb7b6dbae4129b36393c0c222f6971e423e2 (patch)
tree5b0167dc9b7866bee1252f437d55ebedc4d120d4 /src/base/platform/unix/EventLoop.cpp
parenta3a0fb3488d29dd4743e6d4c22da9f5ded070ebc (diff)
downloadcru-62aabb7b6dbae4129b36393c0c222f6971e423e2.tar.gz
cru-62aabb7b6dbae4129b36393c0c222f6971e423e2.tar.bz2
cru-62aabb7b6dbae4129b36393c0c222f6971e423e2.zip
Impl SetQuitOnAllWindowClosed and fix RequestQuit of EventLoop.
Diffstat (limited to 'src/base/platform/unix/EventLoop.cpp')
-rw-r--r--src/base/platform/unix/EventLoop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/platform/unix/EventLoop.cpp b/src/base/platform/unix/EventLoop.cpp
index 7c475697..6e8dc16e 100644
--- a/src/base/platform/unix/EventLoop.cpp
+++ b/src/base/platform/unix/EventLoop.cpp
@@ -34,15 +34,15 @@ int UnixEventLoop::Run() {
while (!exit_code_) {
int poll_timeout = -1;
- while (CheckPoll()) {
+ if (CheckPoll()) {
continue;
}
- while (CheckTimer()) {
+ if (CheckTimer()) {
continue;
}
- while (CheckActionPipe()) {
+ if (CheckActionPipe()) {
continue;
}