mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
curl-util: do not configure new io event source when the event loop is already dead
Similar toc5ecf09494
, but for io event source. Fixes #35322. (cherry picked from commit5b2926d941
)
This commit is contained in:
parent
95c20d0b62
commit
ce997e944f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user