mirror of
https://github.com/edubart/otclient.git
synced 2025-12-29 02:47:12 +01:00
fix possible issue when disconnecting from the server
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user