Skip to content

Commit

Permalink
lib: ioloop-epoll/kqueue: Remove now unnecessary infinite wait check.
Browse files Browse the repository at this point in the history
The previous change adds this globally to io_loop_run_get_wait_time().
  • Loading branch information
sirainen committed Aug 22, 2018
1 parent 639c760 commit 6293b4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/ioloop-epoll.c
Expand Up @@ -185,8 +185,7 @@ void io_loop_handler_run_internal(struct ioloop *ioloop)
} else {
/* no I/Os, but we should have some timeouts.
just wait for them. */
if (msecs < 0)
i_panic("BUG: No IOs or timeouts set. Not waiting for infinity.");
i_assert(msecs >= 0);
usleep(msecs*1000);
ret = 0;
}
Expand Down
3 changes: 1 addition & 2 deletions src/lib/ioloop-kqueue.c
Expand Up @@ -134,8 +134,7 @@ void io_loop_handler_run_internal(struct ioloop *ioloop)
(unsigned int)ts.tv_nsec);
}
} else {
if (msecs < 0)
i_panic("BUG: No IOs or timeouts set. Not waiting for infinity.");
i_assert(msecs >= 0);
usleep(msecs * 1000);
ret = 0;
}
Expand Down

0 comments on commit 6293b4f

Please sign in to comment.