diff --git a/src/main.c b/src/main.c index 3130cb9..9db3a5b 100644 --- a/src/main.c +++ b/src/main.c @@ -141,7 +141,7 @@ bool should_stop_requested(void) { } if (remove(KILL_FILE) == 0) { - g_stop_requested = 1; + request_shutdown_stop("STOP file " KILL_FILE); return true; } return false;