[Telepathy-commits] [telepathy-mission-control/master] Don't panic if the channel is aborted twice

Alberto Mardegan alberto.mardegan at nokia.com
Thu Jan 29 06:48:50 PST 2009


---
 src/mcd-channel.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index d8d0c6f..b5d58f3 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -61,6 +61,7 @@ struct _McdChannelPrivate
     guint members_accepted : 1;
     guint missed : 1;
     guint is_disposed : 1;
+    guint is_aborted : 1;
 
     McdChannelStatus status;
 
@@ -364,6 +365,12 @@ mcd_channel_abort (McdMission *mission)
     McdChannelPrivate *priv = channel->priv;
 
     g_debug ("%s: %p", G_STRFUNC, mission);
+    if (priv->is_aborted)
+    {
+        g_debug ("Already aborted");
+        return;
+    }
+    priv->is_aborted = TRUE;
     /* If this is still a channel request, signal the failure */
     if (priv->status == MCD_CHANNEL_STATUS_REQUEST ||
         priv->status == MCD_CHANNEL_STATUS_REQUESTED ||
-- 
1.5.6.5




More information about the telepathy-commits mailing list