diff options
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/curl-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c index 1628f833a9..4b65f4619f 100644 --- a/src/import/curl-util.c +++ b/src/import/curl-util.c @@ -142,10 +142,8 @@ static int curl_glue_timer_callback(CURLM *curl, long timeout_ms, void *userdata } if (timeout_ms < 0) { - if (g->timer) { - if (sd_event_source_set_enabled(g->timer, SD_EVENT_OFF) < 0) - return -1; - } + if (sd_event_source_set_enabled(g->timer, SD_EVENT_OFF) < 0) + return -1; return 0; } |