We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f7f9e commit a90b142Copy full SHA for a90b142
src/dispatch.c
@@ -17,7 +17,9 @@ void twin_dispatch(twin_context_t *ctx)
17
_twin_run_timeout();
18
_twin_run_work();
19
if (g_twin_backend.poll && !g_twin_backend.poll(ctx)) {
20
- usleep(_twin_timeout_delay() * 1000);
+ twin_time_t delay = _twin_timeout_delay();
21
+ if (delay > 0)
22
+ usleep(delay * 1000);
23
break;
24
}
25
0 commit comments