diff options
-rw-r--r-- | src/event/Loop.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index c525fc103..92492387b 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -52,10 +52,8 @@ EventLoop::~EventLoop() void EventLoop::Break() { - if (IsInside()) - quit = true; - else - AddCall([this]() { Break(); }); + quit = true; + wake_fd.Write(); } bool |