diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-24 01:43:15 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-24 01:43:15 +0800 |
commit | 62aabb7b6dbae4129b36393c0c222f6971e423e2 (patch) | |
tree | 5b0167dc9b7866bee1252f437d55ebedc4d120d4 /src/base/platform/unix | |
parent | a3a0fb3488d29dd4743e6d4c22da9f5ded070ebc (diff) | |
download | cru-62aabb7b6dbae4129b36393c0c222f6971e423e2.tar.gz cru-62aabb7b6dbae4129b36393c0c222f6971e423e2.tar.bz2 cru-62aabb7b6dbae4129b36393c0c222f6971e423e2.zip |
Impl SetQuitOnAllWindowClosed and fix RequestQuit of EventLoop.
Diffstat (limited to 'src/base/platform/unix')
-rw-r--r-- | src/base/platform/unix/EventLoop.cpp | 6 |
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; } |