]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: do not schedule idle timer if our event loop is dying 36966/head
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Mar 2025 20:45:16 +0000 (16:45 -0400)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Apr 2025 15:37:58 +0000 (17:37 +0200)
src/journal/journald-server.c

index 13a95ef015d808aaacaaa741b7dc606a97e7404a..85728b343dca38b33037b85f3cb3a0ebd14684b0 100644 (file)
@@ -2467,7 +2467,8 @@ int server_start_or_stop_idle_timer(Server *s) {
 
         assert(s);
 
-        if (!server_is_idle(s)) {
+        if (sd_event_get_state(s->event) == SD_EVENT_FINISHED ||
+            !server_is_idle(s)) {
                 s->idle_event_source = sd_event_source_disable_unref(s->idle_event_source);
                 return 0;
         }