logind: minor session time handling tweaks

This commit is contained in:
Lennart Poettering 2018-08-07 10:40:50 +02:00
parent 25a1ab4ed4
commit 061c6607a9
2 changed files with 2 additions and 1 deletions

View File

@ -810,7 +810,7 @@ int session_release(Session *s) {
return sd_event_add_time(s->manager->event,
&s->timer_event_source,
CLOCK_MONOTONIC,
now(CLOCK_MONOTONIC) + RELEASE_USEC, 0,
usec_add(now(CLOCK_MONOTONIC), RELEASE_USEC), 0,
release_timeout_callback, s);
}

View File

@ -97,6 +97,7 @@ struct Session {
sd_bus_message *create_message;
/* Set up when a client requested to release the session via the bus */
sd_event_source *timer_event_source;
char *controller;