summaryrefslogtreecommitdiff
path: root/src/logind-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logind-session.c')
-rw-r--r--src/logind-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logind-session.c b/src/logind-session.c
index 088e956bfc..3521309846 100644
--- a/src/logind-session.c
+++ b/src/logind-session.c
@@ -841,12 +841,12 @@ void session_remove_fifo(Session *s) {
}
}
-int session_check_gc(Session *s) {
+int session_check_gc(Session *s, bool drop_not_started) {
int r;
assert(s);
- if (!s->started)
+ if (drop_not_started && !s->started)
return 0;
if (s->fifo_fd >= 0) {