aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-02-14 00:43:35 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-02-14 01:13:23 +0800
commit0306a490cce67d9df54255cd8c7d1efea4c7377f (patch)
tree14443bac4b2d6292af22df7b7c5c09e2216c4fdb /src/empathy.c
parent26024d8ad63511ec46f928d12bc2689098480104 (diff)
downloadgsoc2013-empathy-0306a490cce67d9df54255cd8c7d1efea4c7377f.tar.gz
gsoc2013-empathy-0306a490cce67d9df54255cd8c7d1efea4c7377f.tar.zst
gsoc2013-empathy-0306a490cce67d9df54255cd8c7d1efea4c7377f.zip
Only act when the account got a connection
Diffstat (limited to 'src/empathy.c')
-rw-r--r--src/empathy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 6ae552281..be95d6dd0 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -504,6 +504,8 @@ account_status_changed_cb (TpAccount *account,
TpConnection *conn;
conn = tp_account_get_connection (account);
+ if (conn == NULL)
+ return;
empathy_dispatcher_join_muc (conn,
empathy_chatroom_get_room (room), NULL, NULL);