aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-02 21:05:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-02 21:05:38 +0800
commit3d2adf9323509792856a56a75eca2ad2f14ac7b3 (patch)
treea8c3dd88a86c41843c393f997dd92197d99ea296 /libempathy-gtk
parentcf81786242c9143e0c8cb4956006ff29f1309d8d (diff)
downloadgsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.tar
gsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.tar.gz
gsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.tar.bz2
gsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.tar.lz
gsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.tar.xz
gsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.tar.zst
gsoc2013-empathy-3d2adf9323509792856a56a75eca2ad2f14ac7b3.zip
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).
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index a20367266..692382078 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 &&