diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-02 21:05:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-02 21:05:38 +0800 |
commit | 3d2adf9323509792856a56a75eca2ad2f14ac7b3 (patch) | |
tree | a8c3dd88a86c41843c393f997dd92197d99ea296 /libempathy-gtk/empathy-chat.c | |
parent | cf81786242c9143e0c8cb4956006ff29f1309d8d (diff) | |
download | gsoc2013-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/empathy-chat.c')
-rw-r--r-- | 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 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 && |