diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-24 19:42:45 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-24 19:42:45 +0200 |
commit | ed18b08bed983b845c72a83666a7d7db546d89ad (patch) | |
tree | abfd2a0deea88527011c95bf599d43b8f5644dc3 /src/logind-seat.c | |
parent | 98a28fef2618e54a644614c759f371f297381b70 (diff) |
logind: various clean-ups
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r-- | src/logind-seat.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c index 26c2bd4f5e..c232a87d5d 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -350,18 +350,17 @@ int seat_stop(Seat *s) { assert(s); - if (!s->started) - return 0; - - log_info("Removed seat %s.", s->id); - - seat_send_signal(s, false); + if (s->started) + log_info("Removed seat %s.", s->id); seat_stop_sessions(s); unlink(s->state_file); seat_add_to_gc_queue(s); + if (s->started) + seat_send_signal(s, false); + s->started = false; return r; |