[Telepathy-commits] [telepathy-gabble/master] bytestream_activate_next: assert that active_bytestream is not NULL

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Mar 18 07:45:52 PDT 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 753e487..cc4acd2 100644
--- a/src/bytestream-multiple.c
+++ b/src/bytestream-multiple.c
@@ -583,6 +583,9 @@ bytestream_activate_next (GabbleBytestreamMultiple *self)
       priv->stream_init_id, priv->peer_resource, priv->self_full_jid,
       priv->state);
 
+  /* Methods have already been checked so this shouldn't fail */
+  g_assert (priv->active_bytestream != NULL);
+
   g_free (stream_method);
 
   /* block the new bytestream if needed */
-- 
1.5.6.5




More information about the telepathy-commits mailing list