[empathy] chat_new_connection_cb: don't try to reconnect chats if the account is not connected



commit 3d2adf9323509792856a56a75eca2ad2f14ac7b3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Dec 2 13:05:38 2009 +0000

    chat_new_connection_cb: don't try to reconnect chats if the account is not connected
    
    We should wait that the account is connected before reconnecting chats
    (#603593).

 libempathy-gtk/empathy-chat.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index a203672..6923820 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -217,6 +217,9 @@ chat_new_connection_cb (TpAccount   *account,
 	EmpathyChatPriv *priv = GET_PRIV (chat);
 	TpConnection *connection;
 
+	if (new_status != TP_CONNECTION_STATUS_CONNECTED)
+		return;
+
 	connection = tp_account_get_connection (account);
 
 	if (!priv->tp_chat && account == priv->account &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]