Skip to content

Commit f93b064

Browse files
committed
Merge branch 'script-timer-issue'
Verified OK by reporter. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2 parents 7419860 + ec091fd commit f93b064

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/generic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ int generic_init(uev_ctx_t *ctx, const char *monitor, int T, int timeout, int wa
210210
if (script)
211211
g->exec = strdup(script);
212212

213+
uev_timer_stop(&g->script_watcher);
213214
uev_timer_stop(&g->watcher);
214215

215216
return uev_timer_init(ctx, &g->watcher, cb, g, T * 1000, T * 1000);

0 commit comments

Comments
 (0)