diff libpurple/protocols/msn/switchboard.c @ 28545:dda434352a35

Don't auto-close MSN switchboard connections for chats, because that means we're no longer in the chat and need to be re-invited. Fixes #10144.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 03 Sep 2009 23:09:08 +0000
parents daa709ff32e3
children 19be6fe515ca e30865b62859
line wrap: on
line diff
--- a/libpurple/protocols/msn/switchboard.c	Thu Sep 03 21:34:21 2009 +0000
+++ b/libpurple/protocols/msn/switchboard.c	Thu Sep 03 23:09:08 2009 +0000
@@ -248,9 +248,11 @@
 	{
 		purple_conv_chat_add_user(PURPLE_CONV_CHAT(swboard->conv), user, NULL,
 								PURPLE_CBFLAGS_NONE, TRUE);
+		msn_servconn_set_idle_timeout(swboard->servconn, 0);
 	}
 	else if (swboard->current_users > 1 || swboard->total_users > 1)
 	{
+		msn_servconn_set_idle_timeout(swboard->servconn, 0);
 		if (swboard->conv == NULL ||
 			purple_conversation_get_type(swboard->conv) != PURPLE_CONV_TYPE_CHAT)
 		{