[Telepathy-commits] [telepathy-mission-control/master] Once the channel is failed, status cannot be changed anymore
Alberto Mardegan
alberto.mardegan at nokia.com
Thu Jan 29 06:53:56 PST 2009
Changing the status after the McdChannel is failed is a programming error.
---
src/mcd-channel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index b5d58f3..2327037 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -620,6 +620,7 @@ mcd_channel_set_status (McdChannel *channel, McdChannelStatus status)
if (status != channel->priv->status)
{
+ g_return_if_fail (channel->priv->status != MCD_CHANNEL_STATUS_FAILED);
g_object_ref (channel);
g_signal_emit_by_name (channel, "status-changed", status);
g_object_unref (channel);
--
1.5.6.5
More information about the telepathy-commits
mailing list