summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 8c517f46a7..4ca6b5d805 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -682,7 +682,11 @@ void session_release(Session *s) {
return;
if (!s->timer_event_source)
- sd_event_add_monotonic(s->manager->event, &s->timer_event_source, now(CLOCK_MONOTONIC) + RELEASE_USEC, 0, release_timeout_callback, s);
+ sd_event_add_time(s->manager->event,
+ &s->timer_event_source,
+ CLOCK_MONOTONIC,
+ now(CLOCK_MONOTONIC) + RELEASE_USEC, 0,
+ release_timeout_callback, s);
}
bool session_is_active(Session *s) {