diff src/protocols/msn/notification.c @ 10296:a7b2fd5efcf2

[gaim-migrate @ 11476] Some "random updates" updates from patch 1077274 by Felipe Contreras: "Some changes in the behaviour of slpcalls (for FT), free some unused structures and properly close switchboard connections." Looks good to me, and seems to have fixed a mysterious FT problem that I had been pretending didn't exist. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 02 Dec 2004 16:07:26 +0000
parents f776e117c17b
children 926bd0e5f487
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Thu Dec 02 13:03:23 2004 +0000
+++ b/src/protocols/msn/notification.c	Thu Dec 02 16:07:26 2004 +0000
@@ -30,6 +30,7 @@
 
 #include "userlist.h"
 #include "sync.h"
+#include "slplink.h"
 
 #define BUDDY_ALIAS_MAXLEN 388
 
@@ -447,9 +448,17 @@
 {
 	GaimAccount *account;
 
+	MsnSlpLink *slplink;
+
 	account = cmdproc->session->account;
 
 	gaim_prpl_got_user_status(account, cmd->params[0], "offline", NULL);
+
+	slplink = msn_session_find_slplink(cmdproc->session, cmd->params[0]);
+
+	if (slplink != NULL)
+		msn_slplink_destroy(slplink);
+
 }
 
 /*
@@ -1143,21 +1152,17 @@
 static void
 connect_cb(MsnServConn *servconn)
 {
-	MsnNotification *notification;
 	MsnCmdProc *cmdproc;
 	MsnSession *session;
 	GaimAccount *account;
-	GaimConnection *gc;
 	char **a, **c, *vers;
 	int i;
 
 	g_return_if_fail(servconn != NULL);
 
-	notification = servconn->data;
 	cmdproc = servconn->cmdproc;
 	session = servconn->session;
 	account = session->account;
-	gc = gaim_account_get_connection(account);
 
 	/* Allocate an array for CVR0, NULL, and all the versions */
 	a = c = g_new0(char *, session->protocol_ver - 8 + 3);
@@ -1180,11 +1185,6 @@
 	if (session->user == NULL)
 		session->user = msn_user_new(session->userlist,
 									 gaim_account_get_username(account), NULL);
-
-#if 0
-	gaim_connection_update_progress(gc, _("Syncing with server"),
-									4, MSN_CONNECT_STEPS);
-#endif
 }
 
 void