From a0ee1678efd3c01d3856c324b8e29fd591d75dd4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 26 Feb 2008 13:31:26 +0000 Subject: Avoid calling Close() on the media channel if it's already closed. svn path=/trunk/; revision=670 --- libempathy/empathy-tp-call.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index 0e4823e69..25c47cd2c 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -833,6 +833,9 @@ empathy_tp_call_close_channel (EmpathyTpCall *call) EmpathyTpCallPriv *priv = GET_PRIV (call); GError *error = NULL; + if (priv->status == EMPATHY_TP_CALL_STATUS_CLOSED) + return; + empathy_debug (DEBUG_DOMAIN, "Closing channel"); if (!tp_chan_close (DBUS_G_PROXY (priv->channel), &error)) @@ -841,6 +844,8 @@ empathy_tp_call_close_channel (EmpathyTpCall *call) error ? error->message : "No error given"); g_clear_error (&error); } + else + priv->status = EMPATHY_TP_CALL_STATUS_CLOSED; } void -- cgit v1.2.3