Commit 32b1b90f authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Fix typo: Cancel the UPnP timeout if all scheduled upnp requests are done

parent db2e674f
......@@ -1646,7 +1646,7 @@ static void _upnp_mapped_external_port (GUPnPSimpleIgd *self, gchar *proto,
}
end:
if (g_slist_length (agent->upnp_mapping)) {
if (g_slist_length (agent->upnp_mapping) == 0) {
if (agent->upnp_timer_source != NULL) {
g_source_destroy (agent->upnp_timer_source);
g_source_unref (agent->upnp_timer_source);
......@@ -1682,7 +1682,7 @@ static void _upnp_error_mapping_port (GUPnPSimpleIgd *self, GError *error,
}
}
if (g_slist_length (agent->upnp_mapping)) {
if (g_slist_length (agent->upnp_mapping) == 0) {
if (agent->upnp_timer_source != NULL) {
g_source_destroy (agent->upnp_timer_source);
g_source_unref (agent->upnp_timer_source);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment