From b5442b5efd7cda350c3b0f669c60a8f1d9daf0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Fri, 23 Nov 2018 15:52:18 +0100 Subject: [PATCH] Make sure that pending but unreferenced timers still invoke their callback. Fixes #104. --- source/vibe/core/core.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index d7f85e3..1ada49c 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1103,7 +1103,7 @@ struct TimerCallbackHandler { cb(); } - if (!eventDriver.timers.isUnique(timer)) + if (!eventDriver.timers.isUnique(timer) || eventDriver.timers.isPending(timer)) eventDriver.timers.wait(timer, &handle); } }