Remove this timer when the switchboard is destroyed. Fixes a crash

Tue, 25 Nov 2008 22:06:06 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Tue, 25 Nov 2008 22:06:06 +0000
changeset 24798
4a0c57b22a65
parent 24797
5d78589aee74
child 24799
d166acdb3a43

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.

libpurple/protocols/msn/switchboard.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/switchboard.c	Tue Nov 25 21:35:59 2008 +0000
+++ b/libpurple/protocols/msn/switchboard.c	Tue Nov 25 22:06:06 2008 +0000
@@ -81,6 +81,9 @@
 
 	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);

mercurial