From d9c373419a1719e93a08aaae15fc95b7afe61b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 30 Jan 2017 20:12:37 +0100 Subject: [PATCH] Fixup for the previous timer fix. --- source/vibe/core/core.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index ef1d9b6..c720597 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -886,9 +886,10 @@ Timer createTimer(void delegate() nothrow @safe callback) auto ret = Timer(eventDriver.timers.create()); if (callback !is null) { runTask((void delegate() nothrow @safe cb, Timer tm) { - while (!tm.unique || tm.pending) + while (!tm.unique || tm.pending) { tm.wait(); - cb(); + cb(); + } }, callback, ret); } return ret;