]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Minor panic message improvement.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 20 May 2016 10:53:01 +0000 (13:53 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 20 May 2016 10:53:01 +0000 (13:53 +0300)
src/lib/ioloop-epoll.c

index c2fe1a94867edad461fbc486b07835557466a516..e70125f1f5f5447ed3c75a112ed4635ef68921f7 100644 (file)
@@ -184,7 +184,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;
        }