]> git.0d.be Git - empathy.git/commitdiff
Avoid calling Close() on the media channel if it's already closed.
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 26 Feb 2008 13:31:26 +0000 (13:31 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 26 Feb 2008 13:31:26 +0000 (13:31 +0000)
svn path=/trunk/; revision=670

libempathy/empathy-tp-call.c

index 0e4823e6977f0bf451e9add96f8a98670ae96484..25c47cd2caf70cb3bfa95361ec2ff1df0d38a8c1 100644 (file)
@@ -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