changeset 30440:6c59e8ad1261

Fix a possible crash reported by HanzZ. Fix thanks to HanzZ also. committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author hanzz@soc.pidgin.im
date Tue, 24 Aug 2010 04:54:00 +0000
parents 1feb2baeac2d
children cae0dd35d16a
files libpurple/protocols/msn/session.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c	Tue Aug 24 04:45:25 2010 +0000
+++ b/libpurple/protocols/msn/session.c	Tue Aug 24 04:54:00 2010 +0000
@@ -283,7 +283,7 @@
 void
 msn_session_activate_login_timeout(MsnSession *session)
 {
-	if (!session->logged_in) {
+	if (!session->logged_in && session->connected) {
 		session->login_timeout =
 			purple_timeout_add_seconds(MSN_LOGIN_FQY_TIMEOUT,
 			                           msn_login_timeout_cb, session);