Skip to content

Commit

Permalink
Loop until events instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Cimon committed Dec 8, 2015
1 parent daf347b commit b25e844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vibe/core/drivers/libasync.d
Expand Up @@ -134,7 +134,7 @@ final class LibasyncDriver : EventDriver {

int runEventLoop()
{
while(!m_break && getEventLoop().loop()){
while(!m_break && getEventLoop().loop(int.max.msecs)){
processTimers();
getDriverCore().notifyIdle();
}
Expand All @@ -145,7 +145,7 @@ final class LibasyncDriver : EventDriver {

int runEventLoopOnce()
{
getEventLoop().loop(100.msecs);
getEventLoop().loop(int.max.msecs);
processTimers();
getDriverCore().notifyIdle();
logTrace("runEventLoopOnce exit");
Expand Down

0 comments on commit b25e844

Please sign in to comment.