GNOME Bugzilla – Bug 672178
CRITICAL when disconnecting after setting a connection as IDLE
Last modified: 2012-03-28 15:56:44 UTC
The backtrace explains it better than any words
+ Trace 229889
So the nested call to soup_connection_disconnect() will set priv->socket to NULL on line 849. Thus the first call to soup_connection_disconnect() will find that after coming back from soup_socket_disconnect() priv->socket is NULL. That's why we get the CRITICAL in the g_object_unref.
Created attachment 210761 [details] [review] soup-connection.c: do not unref the socket twice while disconnecting Reentrant calls to soup_socket_disconnect() when disconnecting the socket lead to double disconnections and double unref of the same SoupSocket.
Comment on attachment 210761 [details] [review] soup-connection.c: do not unref the socket twice while disconnecting assuming "make check" still passes, ok
Committed 0c0619228a3488a4808cad2383073e00db22cd6d