Fix for latest eventcore changes.

This commit is contained in:
Sönke Ludwig 2016-06-14 09:25:28 +02:00
parent 3b0e4e0452
commit 8264070f19

View file

@ -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;
}