changeset 31758:747c5be08e81

Destroy the existing Nexus if we get a second USR SSO. This might happen if you get an XFR after authenticating, which didn't seem to be standard behaviour earlier. Thanks to HanzZ for discovery and fix.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 22 Jul 2011 19:55:24 +0000
parents b863432e81d1
children 5b56656ff5a5
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Thu Jul 21 06:10:54 2011 +0000
+++ b/libpurple/protocols/msn/notification.c	Fri Jul 22 19:55:24 2011 +0000
@@ -198,6 +198,9 @@
 	{
 		/* RPS authentication */
 
+		if (session->nexus)
+			msn_nexus_destroy(session->nexus);
+
 		session->nexus = msn_nexus_new(session);
 
 		session->nexus->policy = g_strdup(cmd->params[3]);