diff libpurple/protocols/msn/session.c @ 31765:c164dcad5e28

Don't accidentally add a second login timeout. This shouldn't happen with the fix from the previous commit, though.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 08 Aug 2011 21:49:06 +0000
parents feb50c34ec46
children 6ce4f2272abc
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c	Mon Aug 08 21:43:19 2011 +0000
+++ b/libpurple/protocols/msn/session.c	Mon Aug 08 21:49:06 2011 +0000
@@ -288,6 +288,8 @@
 msn_session_activate_login_timeout(MsnSession *session)
 {
 	if (!session->logged_in && session->connected) {
+		if (session->login_timeout)
+			purple_timeout_remove(session->login_timeout);
 		session->login_timeout =
 			purple_timeout_add_seconds(MSN_LOGIN_FQY_TIMEOUT,
 			                           msn_login_timeout_cb, session);