Remove polling threads from map.

This commit is contained in:
Sönke Ludwig 2017-11-25 00:26:20 +01:00
parent 31286e4580
commit c8eb30f6f0

View file

@ -272,6 +272,7 @@ final class PollEventDriverWatchers(Events : EventDriverEvents) : EventDriverWat
assert(pt !is null); assert(pt !is null);
if (!m_events.releaseRef(evt)) { if (!m_events.releaseRef(evt)) {
pt.dispose(); pt.dispose();
m_pollers.remove(evt);
return false; return false;
} }
return true; return true;