[gaim-migrate @ 11917]

Thu, 27 Jan 2005 03:48:25 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Thu, 27 Jan 2005 03:48:25 +0000
changeset 10547
61f5540fc15a
parent 10546
7c68e6c0ec70
child 10548
990b3ec2758e

[gaim-migrate @ 11917]
I think some of us agree that this
1. Could break something if a conversation is actually removed
2. Should not be done anyway

src/protocols/silc/silc.c file | annotate | diff | comparison | revisions
--- a/src/protocols/silc/silc.c	Wed Jan 26 23:27:27 2005 +0000
+++ b/src/protocols/silc/silc.c	Thu Jan 27 03:48:25 2005 +0000
@@ -349,19 +349,9 @@
 static void
 silcgaim_close(GaimConnection *gc)
 {
-	GList *l;
-	GaimConversation *conv;
 	SilcGaim sg = gc->proto_data;
-	if (!sg)
-		return;
 
-	/* Close all conversations for this connection */
-	for (l = gaim_get_conversations(); l; l = l->next)
-	{
-		conv = l->data;
-		if (gc == conv->account->gc)
-			gaim_conversation_destroy(conv);
-	}
+	g_return_if_fail(sg != NULL);
 
 	/* Send QUIT */
 	silc_client_command_call(sg->client, sg->conn, NULL,

mercurial