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();
   }