From 8264070f19a32ce382f9aba328815f4cc6763bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 14 Jun 2016 09:25:28 +0200 Subject: [PATCH] Fix for latest eventcore changes. --- source/vibe/core/core.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index c4ffb62..a7e22c2 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -734,7 +734,9 @@ Timer createTimer(void delegate() nothrow @safe callback) if (callback !is null) callback(); } - return Timer(eventDriver.createTimer(&cb)); // FIXME: avoid heap closure! + auto ret = Timer(eventDriver.createTimer()); + eventDriver.waitTimer(ret.m_id, &cb); // FIXME: avoid heap closure! + return ret; }