seat: fix forwarding errors in seat_pause()

If we force a pause we need to forward the error code. Otherwise, we
cannot properly react on it and print warnings.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-11-17 20:25:29 +01:00
parent 527a73120b
commit 75435623e1

View File

@ -335,7 +335,7 @@ static int seat_pause(struct kmscon_seat *seat, bool force)
session_deactivate(seat->current_sess);
return 0;
return ret;
}
static void seat_reschedule(struct kmscon_seat *seat)