core: only set event source name when we create an event source

This commit is contained in:
Lennart Poettering
2015-05-13 18:30:14 +02:00
parent b4a855e9f6
commit cbf60d0a7f
4 changed files with 36 additions and 24 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ static int scope_arm_timer(Scope *s) {
return sd_event_source_set_enabled(s->timer_event_source, SD_EVENT_ONESHOT);
}
r = sd_event_add_time(
r = sd_event_add_time(
UNIT(s)->manager->event,
&s->timer_event_source,
CLOCK_MONOTONIC,