component: don't detach the socket source twice
authorFabrice Bellet <fabrice@bellet.info>
Fri, 28 Jun 2019 11:49:47 +0000 (13:49 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 4 Jul 2019 21:03:43 +0000 (17:03 -0400)
The source is also detached in socket_source_free()

agent/component.c

index 720dd39..10fb32b 100644 (file)
@@ -699,7 +699,6 @@ nice_component_detach_socket (NiceComponent *component, NiceSocket *nicesock)
   component->socket_sources = g_slist_delete_link (component->socket_sources, s);
   component->socket_sources_age++;
 
-  socket_source_detach (socket_source);
   socket_source_free (socket_source);
 }