[Telepathy-commits] [telepathy-gabble/master] data_received_cb: early return if sending failed

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jan 6 08:41:39 PST 2009


---
 src/tube-stream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index b24a476..bb21fc6 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1359,6 +1359,7 @@ data_received_cb (GabbleBytestreamIface *bytestream,
   {
     DEBUG ("sending failed: %s", error->message);
     g_error_free (error);
+    return;
   }
 
   if (!gibber_transport_buffer_is_empty (transport))
-- 
1.5.6.5




More information about the Telepathy-commits mailing list