From 489b35539b8b8d2c83d799d441f2c1a096ac5345 Mon Sep 17 00:00:00 2001 From: Boris-Barboris Date: Fri, 30 Mar 2018 09:28:45 +0000 Subject: [PATCH] fix comparison in doWait --- source/vibe/core/sync.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/sync.d b/source/vibe/core/sync.d index 0c2caa4..041f57d 100644 --- a/source/vibe/core/sync.d +++ b/source/vibe/core/sync.d @@ -778,7 +778,7 @@ struct LocalManualEvent { 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); try now = Clock.currTime(UTC()); catch (Exception e) { assert(false, e.msg); }