changeset 20992:758d10b409a5

Don't reinitialize the OIM session on subsequent calls.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 19 Oct 2007 01:42:52 +0000
parents c8f99cb61dc9
children d75823791c02
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Fri Oct 19 01:38:35 2007 +0000
+++ b/libpurple/protocols/msn/notification.c	Fri Oct 19 01:42:52 2007 +0000
@@ -1790,7 +1790,9 @@
 		return;
 
 	/*new a oim session*/
-	session->oim = msn_oim_new(session);
+	/* There are several things that call this */
+	if (session->oim == NULL)
+		session->oim = msn_oim_new(session);
 //	msn_oim_connect(session->oim);
 
 	table = msn_message_get_hashtable_from_body(msg);