]> git.0d.be Git - empathy.git/commitdiff
Close the channel if se proxy is invalidated and do not change status to closed if...
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 26 Feb 2008 13:31:25 +0000 (13:31 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 26 Feb 2008 13:31:25 +0000 (13:31 +0000)
svn path=/trunk/; revision=669

libempathy/empathy-tp-call.c

index 9957d8f25e31eca2f0174c68faf8f4e66f0a851e..0e4823e6977f0bf451e9add96f8a98670ae96484 100644 (file)
@@ -483,14 +483,10 @@ tp_call_async_cb (TpProxy *proxy,
                   gpointer user_data,
                   GObject *call)
 {
-  EmpathyTpCallPriv *priv = GET_PRIV (call);
-
   if (error)
     {
       empathy_debug (DEBUG_DOMAIN, "Error %s: %s",
           user_data, error->message);
-      priv->status = EMPATHY_TP_CALL_STATUS_CLOSED;
-      g_signal_emit_by_name (call, "status-changed");
     }
 }
 
@@ -501,12 +497,9 @@ tp_call_invalidated_cb (TpProxy       *stream_engine,
                         gchar         *message,
                         EmpathyTpCall *call)
 {
-  EmpathyTpCallPriv *priv = GET_PRIV (call);
-
   empathy_debug (DEBUG_DOMAIN, "Stream engine proxy invalidated: %s",
       message);
-  priv->status = EMPATHY_TP_CALL_STATUS_CLOSED;
-  g_signal_emit_by_name (call, "status-changed");
+  empathy_tp_call_close_channel (call);
 }
 
 static void