Commit 2f0d6833 authored by Max Kellermann's avatar Max Kellermann

event/Loop: fix inverted checkin RemoveDeferred()

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