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;