Fix for latest eventcore changes.
This commit is contained in:
parent
3b0e4e0452
commit
8264070f19
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue