summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-30 14:53:33 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-30 14:53:33 +0200
commit87c5fb649bec9df2f96f30a3cb56d6dcf5685f7d (patch)
treeba57b5c91f13a279a697d71dba33061bb1e39fcb
parent985d78ca9d0eb3947fd35269e6a55e0fecf57526 (diff)
simplify channel_remove_self_cb
-rw-r--r--telepathy-glib/channel.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/telepathy-glib/channel.c b/telepathy-glib/channel.c
index b3fa56c5..34e09f80 100644
--- a/telepathy-glib/channel.c
+++ b/telepathy-glib/channel.c
@@ -2141,27 +2141,17 @@ channel_remove_self_cb (TpChannel *channel,
{
GSimpleAsyncResult *result = user_data;
- if (error != NULL)
+ if (tp_proxy_get_invalidated (channel) != NULL &&
+ error != NULL)
{
- DEBUG ("RemoveMembersWithDetails() with self handle failed: %s",
- error->message);
-
- if (tp_proxy_get_invalidated (channel) != NULL)
- {
- DEBUG ("Proxy has been invalidated; succeed");
- goto succeed;
- }
-
- DEBUG ("Close channel then");
+ DEBUG ("RemoveMembersWithDetails() with self handle failed; call Close()"
+ " %s", error->message);
tp_cli_channel_call_close (channel, -1, channel_close_cb, result,
NULL, NULL);
return;
}
- DEBUG ("RemoveMembersWithDetails() succeeded");
-
-succeed:
g_simple_async_result_complete (result);
g_object_unref (result);
}