summaryrefslogtreecommitdiff
path: root/src/ctl/sinkctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctl/sinkctl.c')
-rw-r--r--src/ctl/sinkctl.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ctl/sinkctl.c b/src/ctl/sinkctl.c
index db3fe53..e37fa46 100644
--- a/src/ctl/sinkctl.c
+++ b/src/ctl/sinkctl.c
@@ -252,12 +252,13 @@ static void schedule_timeout(sd_event_source **out,
if (r < 0)
cli_vERR(r);
} else {
- r = sd_event_add_monotonic(cli_event,
- out,
- rel_usec,
- 0,
- timeout_fn,
- data);
+ r = sd_event_add_time(cli_event,
+ out,
+ CLOCK_MONOTONIC,
+ rel_usec,
+ 0,
+ timeout_fn,
+ data);
if (r < 0)
cli_vERR(r);
}