aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-event-manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 4a19b52eb..7d144dda8 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -352,7 +352,7 @@ event_update (EmpathyEventManager *manager, EventPriv *event,
}
static void
-channel_claim_cb (GObject *source,
+reject_channel_claim_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
@@ -383,8 +383,9 @@ out:
static void
reject_approval (EventManagerApproval *approval)
{
+ /* We have to claim the channel before closing it */
tp_channel_dispatch_operation_claim_async (approval->operation,
- channel_claim_cb, g_object_ref (approval->handler_instance));
+ reject_channel_claim_cb, g_object_ref (approval->handler_instance));
}
static void