[libsoup/carlosgc/session-queue-source: 3/5] session: do not add queue sources for sync items
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/session-queue-source: 3/5] session: do not add queue sources for sync items
- Date: Fri, 14 Oct 2022 09:01:14 +0000 (UTC)
commit d0c378001c94792ccec409c3208a07c1a5d1b57c
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Fri Oct 14 10:23:59 2022 +0200
session: do not add queue sources for sync items
libsoup/soup-session.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 13fea3ea..038f59bc 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -235,6 +235,9 @@ soup_session_add_queue_source_for_item (SoupSession *session,
{
SoupSessionPrivate *priv = soup_session_get_instance_private (session);
+ if (!item->async)
+ return;
+
if (item->context == priv->context)
return;
@@ -267,6 +270,9 @@ soup_session_remove_queue_source_for_item (SoupSession *session,
{
SoupSessionPrivate *priv = soup_session_get_instance_private (session);
+ if (!item->async)
+ return;
+
if (item->context == priv->context)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]