Commit 115af4f5 authored by Max Kellermann's avatar Max Kellermann

event/Loop: Break() is no-op if "quit" is already set

parent 822724d1
...@@ -46,6 +46,9 @@ EventLoop::~EventLoop() ...@@ -46,6 +46,9 @@ EventLoop::~EventLoop()
void void
EventLoop::Break() EventLoop::Break()
{ {
if (quit)
return;
quit = true; quit = true;
wake_fd.Write(); wake_fd.Write();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment