summaryrefslogtreecommitdiff
path: root/libgupnp-igd/gupnp-simple-igd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgupnp-igd/gupnp-simple-igd.c')
-rw-r--r--libgupnp-igd/gupnp-simple-igd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgupnp-igd/gupnp-simple-igd.c b/libgupnp-igd/gupnp-simple-igd.c
index 1517981..e300d3e 100644
--- a/libgupnp-igd/gupnp-simple-igd.c
+++ b/libgupnp-igd/gupnp-simple-igd.c
@@ -813,6 +813,12 @@ _service_proxy_added_port_mapping (GObject *source_object, GAsyncResult *res,
GUPnPSimpleIgd *self;
GError *error = NULL;
+ /* This is a hack, but wek now that "res" is actually implemented as a GTask,
+ * we're just too lazy to carry our own reference counted structure
+ */
+ if (g_cancellable_is_cancelled (g_task_get_cancellable (G_TASK (res))))
+ return;
+
action = gupnp_service_proxy_call_action_finish (proxy, res, &error);
if (action == NULL &&