From 62aabb7b6dbae4129b36393c0c222f6971e423e2 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Wed, 24 Sep 2025 01:43:15 +0800 Subject: Impl SetQuitOnAllWindowClosed and fix RequestQuit of EventLoop. --- src/base/platform/unix/EventLoop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/base') 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; } -- cgit v1.2.3