[telepathy-gabble/master] socks5: block reading once socks5 negotation is done if bytestream has been blocked
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Apr 3 09:25:48 PDT 2009
---
src/bytestream-socks5.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index 975ba59..3308065 100644
--- a/src/bytestream-socks5.c
+++ b/src/bytestream-socks5.c
@@ -713,6 +713,13 @@ socks5_handle_received_data (GabbleBytestreamSocks5 *self,
lm_message_unref (iq_result);
}
+ if (priv->read_blocked)
+ {
+ DEBUG ("reading has been blocked. Blocking now as the socks5 "
+ "negotiation is done");
+ gibber_transport_block_receiving (priv->transport, TRUE);
+ }
+
return 2;
case SOCKS5_STATE_AWAITING_AUTH_REQUEST:
--
1.5.6.5
More information about the telepathy-commits
mailing list