chiark / gitweb /
logind: make idle hint logic work
[elogind.git] / src / logind-seat.c
index 09356b6b09488fba05f903ba02d0db118532873d..12a1b806470efee273cc7a891c20d4afede58f3b 100644 (file)
@@ -230,8 +230,7 @@ int seat_set_active(Seat *s, Session *session) {
         Session *old_active;
 
         assert(s);
-        assert(session);
-        assert(session->seat == s);
+        assert(!session || session->seat == s);
 
         if (session == s->active)
                 return 0;