souphttpsrc: Don't abort all pending operations on the session if shutting down a source with a shared session

Only do it for a non-shared session. Other sources would otherwise get
their requests cancelled unexpectedly.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1594>
This commit is contained in:
Sebastian Dröge 2022-01-28 15:31:55 +02:00
parent 499e0acd43
commit 080d85b19a

View file

@ -1212,7 +1212,7 @@ _session_close_cb (gpointer user_data)
g_clear_object (&src->msg);
}
if (src->session_is_shared)
if (!src->session_is_shared)
_soup_session_abort (src->session->session);
/* there may be multiple of this callback attached to the session,