changeset 24536:15db3067a5ac

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.
author Mark Doliner <mark@kingant.net>
date Tue, 25 Nov 2008 22:06:06 +0000
parents a9fdc17304d9
children 0f7a248848ed
files libpurple/protocols/msn/switchboard.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);