fix possible issue when disconnecting from the server

This commit is contained in:
Eduardo Bart
2012-02-03 00:54:33 -02:00
parent 05f649cdeb
commit f1cba66b1e
2 changed files with 8 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ public:
void setErrorCallback(const ErrorCallback& errorCallback) { m_errorCallback = errorCallback; }
boost::system::error_code getError() const { return m_error; }
bool isConnecting() const { return m_connecting; }
bool isConnected() const { return m_connected; }
@@ -80,6 +81,7 @@ protected:
uint8 m_recvBuffer[RECV_BUFFER_SIZE];
bool m_connected;
bool m_connecting;
boost::system::error_code m_error;
int m_sendBufferSize;
Timer m_sendTimer;
ScheduledEventPtr m_sendEvent;