commit | 6e0c5a5e470795fa0f743366bfd400809ba1a001 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Mar 18 16:18:58 2014 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Mar 18 16:19:53 2014 -0700 |
tree | 8b57ce2977c2cca36654ada0916d49efe800d119 | |
parent | 2a8e6278c4cbf66558b19b23e3cabf010805194b [diff] |
transport: Fixing bug with pausing transport Before this fix, there was a chance of calling cancel on closed socket. Change-Id: Ibe1b33e50a680dcc60098334ca04b96a8239f5fc
diff --git a/src/transport/stream-transport.hpp b/src/transport/stream-transport.hpp index 2ab4752..1bde91b 100644 --- a/src/transport/stream-transport.hpp +++ b/src/transport/stream-transport.hpp
@@ -103,6 +103,7 @@ m_connectTimer.cancel(); m_socket.close(); m_transport.m_isConnected = false; + m_transport.m_isExpectingData = false; m_sendQueue.clear(); m_sendPairQueue.clear(); }