pidgin: ca6b6354: Remove this timer when the switchboard i...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Nov 25 17:12:26 EST 2008


-----------------------------------------------------------------
Revision: ca6b6354858cb53e910506bdcc97d62a65e3aa1d
Ancestor: 8ae84c4bf78b72fd35f82b51f4b3510bedbbaa0f
Author: markdoliner at pidgin.im
Date: 2008-11-25T22:06:06
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ca6b6354858cb53e910506bdcc97d62a65e3aa1d

Modified files:
        libpurple/protocols/msn/switchboard.c

ChangeLog: 

Remove this timer when the switchboard is destroyed.  Fixes a crash
if we disconect at the same time we're attempting to retry a command,
or something.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/switchboard.c	7a97c02db70c547f774794f7033bee831e012099
+++ libpurple/protocols/msn/switchboard.c	72293f4fa429c3fa80ab82941bf1f502b246d0fb
@@ -81,6 +81,9 @@ msn_switchboard_destroy(MsnSwitchBoard *
 
 	swboard->destroying = TRUE;
 
+	if (swboard->reconn_timeout_h > 0)
+		purple_timeout_remove(swboard->reconn_timeout_h);
+
 	/* If it linked us is because its looking for trouble */
 	while (swboard->slplinks != NULL)
 		msn_slplink_destroy(swboard->slplinks->data);


More information about the Commits mailing list