event/Loop: Break() is no-op if "quit" is already set
This commit is contained in:
parent
822724d1aa
commit
115af4f565
|
@ -46,6 +46,9 @@ EventLoop::~EventLoop()
|
|||
void
|
||||
EventLoop::Break()
|
||||
{
|
||||
if (quit)
|
||||
return;
|
||||
|
||||
quit = true;
|
||||
wake_fd.Write();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue