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()
void
EventLoop::Break()
{
if (quit)
return;
quit = true;
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