event/Loop: fix inverted checkin RemoveDeferred()

This commit is contained in:
Max Kellermann 2017-08-29 16:28:24 +02:00
parent a1309a90ac
commit 2f0d683378
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}