fix comparison in doWait

This commit is contained in:
Boris-Barboris 2018-03-30 09:28:45 +00:00
parent a840c51c5d
commit 489b35539b

View file

@ -778,7 +778,7 @@ struct LocalManualEvent {
target_timeout = now + timeout; target_timeout = now + timeout;
} }
while (m_waiter.m_emitCount - emit_count > 0) { while (m_waiter.m_emitCount - emit_count >= 0) {
m_waiter.wait!interruptible(timeout != Duration.max ? target_timeout - now : Duration.max); m_waiter.wait!interruptible(timeout != Duration.max ? target_timeout - now : Duration.max);
try now = Clock.currTime(UTC()); try now = Clock.currTime(UTC());
catch (Exception e) { assert(false, e.msg); } catch (Exception e) { assert(false, e.msg); }