1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[timer] delay can be 0 for curl

This commit is contained in:
Witold Filipczyk 2024-09-02 14:54:23 +02:00
parent 48230a79e4
commit aa2becc3b0

View File

@ -156,7 +156,7 @@ install_timer(timer_id_T *id, milliseconds_T delay, void (*func)(void *), void *
{
struct timer *new_timer, *timer;
assert(id && delay > 0);
assert(id && delay >= 0);
#ifdef USE_LIBEVENT
char *q = (char *)mem_alloc(sizeof_struct_event + sizeof(struct timer));