diff options
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index e7b3c22..d944c24 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -72,7 +72,8 @@ int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events, error: sd_event_source_unref(evs); - exit(1); + if (getenv("WINMAN_EXIT_ON_HANGUP") != nullptr) + exit(1); return -1; } |