summaryrefslogtreecommitdiff
path: root/common/server-mainloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/server-mainloop.c')
-rw-r--r--common/server-mainloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/server-mainloop.c b/common/server-mainloop.c
index d569d61..c6d2018 100644
--- a/common/server-mainloop.c
+++ b/common/server-mainloop.c
@@ -138,7 +138,7 @@ add_timer(int ms, int oneshot, server_timer_callback callback, void* arg)
struct timeval interval;
timer_callback* cb;
- ASSERT(ms > 0);
+ ASSERT (ms || oneshot);
ASSERT(callback != NULL);
interval.tv_sec = ms / 1000;