gobjectification: 2ab99dba: When initializing a PurpleConnection obj...

qulogic at pidgin.im qulogic at pidgin.im
Tue Aug 12 00:56:46 EDT 2008


-----------------------------------------------------------------
Revision: 2ab99dba1f8047c40af1b87d397a5a90c78fe03f
Ancestor: 29be266608e76679d810c6e5731d389af35294d7
Author: qulogic at pidgin.im
Date: 2008-08-12T04:34:55
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/2ab99dba1f8047c40af1b87d397a5a90c78fe03f

Modified files:
        libpurple/connection.c

ChangeLog: 

When initializing a PurpleConnection object, save it in the connections 
list so that PURPLE_CONNECTION_IS_VALID works properly. This fixes that 
XMPP-login-freezes-stuff bug.

-------------- next part --------------
============================================================
--- libpurple/connection.c	9db8a438a8038fc3d8f3033a7d0f454bafbda717
+++ libpurple/connection.c	0b8deb5cc06e2d1cbe281ff49936aeb880db8c54
@@ -810,6 +810,8 @@ purple_connection_init(GTypeInstance *in
 	PurpleConnection *pc = PURPLE_CONNECTION(instance);
 
 	pc->priv = g_new0(PurpleConnectionPrivate, 1);
+	connections = g_list_append(connections, pc);
+
 	purple_connection_set_state(pc, PURPLE_CONNECTION_STATE_CONNECTING);
 }
 


More information about the Commits mailing list