[Telepathy-commits] [telepathy-gabble/master] bytestream_connection_error_cb: assert the state of the bytestream
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Jan 6 08:41:36 PST 2009
---
src/bytestream-multiple.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-multiple.c b/src/bytestream-multiple.c
index f8aeee6..19b865a 100644
--- a/src/bytestream-multiple.c
+++ b/src/bytestream-multiple.c
@@ -534,6 +534,9 @@ bytestream_connection_error_cb (GabbleBytestreamIface *failed,
GABBLE_BYTESTREAM_MULTIPLE_GET_PRIVATE (self);
g_assert (failed == priv->active_bytestream);
+ /* the error signal is only emitted when intiating the bytestream */
+ g_assert (priv->state == GABBLE_BYTESTREAM_STATE_INITIATING ||
+ priv->state == GABBLE_BYTESTREAM_STATE_ACCEPTED);
g_signal_handlers_disconnect_by_func (failed,
bytestream_connection_error_cb, self);
--
1.5.6.5
More information about the Telepathy-commits
mailing list