summaryrefslogtreecommitdiffstats
path: root/src/import/curl-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/curl-util.c')
-rw-r--r--src/import/curl-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c
index cc97ce6b55..85c4f9b462 100644
--- a/src/import/curl-util.c
+++ b/src/import/curl-util.c
@@ -75,6 +75,10 @@ static int curl_glue_socket_callback(CURL *curl, curl_socket_t s, int action, vo
return 0;
}
+ /* Don't configure io event source anymore when the event loop is dead already. */
+ if (g->event && sd_event_get_state(g->event) == SD_EVENT_FINISHED)
+ return 0;
+
r = hashmap_ensure_allocated(&g->ios, &trivial_hash_ops);
if (r < 0) {
log_oom();