event/Loop: fix inverted checkin RemoveDeferred()
This commit is contained in:
parent
a1309a90ac
commit
2f0d683378
|
@ -237,7 +237,7 @@ EventLoop::RemoveDeferred(DeferredMonitor &d)
|
|||
{
|
||||
const std::lock_guard<Mutex> protect(mutex);
|
||||
|
||||
if (!d.IsPending())
|
||||
if (d.IsPending())
|
||||
deferred.erase(deferred.iterator_to(d));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue