Skip to content

Commit

Permalink
lib: Minor panic message improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jan 15, 2017
1 parent b1dc39e commit c7949e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/ioloop-epoll.c
Expand Up @@ -186,7 +186,8 @@ void io_loop_handler_run_internal(struct ioloop *ioloop)
} else {
/* no I/Os, but we should have some timeouts.
just wait for them. */
i_assert(msecs >= 0);
if (msecs < 0)
i_panic("BUG: No IOs or timeouts set. Not waiting for infinity.");
usleep(msecs*1000);
ret = 0;
}
Expand Down

0 comments on commit c7949e3

Please sign in to comment.