Since timeout_add() expects the timeout in milliseconds, the correct ELL primitive to call is l_timeout_create_ms() --- src/shared/timeout-ell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/timeout-ell.c b/src/shared/timeout-ell.c index 6416d8590..026286926 100644 --- a/src/shared/timeout-ell.c +++ b/src/shared/timeout-ell.c @@ -68,7 +68,7 @@ unsigned int timeout_add(unsigned int timeout, timeout_func_t func, data->timeout = timeout; while (id == 0 && tries < 3) { - to = l_timeout_create(timeout, timeout_callback, + to = l_timeout_create_ms(timeout, timeout_callback, data, timeout_destroy); if (!to) break; -- 2.26.3