ctdb-common: Reset running state on failure
[kai/samba-autobuild/.git] / ctdb / common / run_event.c
index 9ff18707715199ae28f143e4f21e2029fde546fd..44b0e7e4979c118f54e7d4a10efae418471db0d1 100644 (file)
@@ -814,6 +814,7 @@ static void run_event_next_script(struct tevent_req *subreq)
        state->script_subreq = NULL;
        if (! status) {
                D_ERR("run_proc failed for %s, ret=%d\n", script->name, ret);
+               run_event_stop_running(state->run_ctx);
                tevent_req_error(req, ret);
                return;
        }