Merge branch 'master' of github.com:edubart/otclient

This commit is contained in:
Henrique 2011-09-13 18:55:01 -03:00
commit 1838120f6e
1 changed files with 2 additions and 2 deletions

View File

@ -132,14 +132,14 @@ void Connection::onConnect(const boost::system::error_code& error)
{ {
m_readTimer.cancel(); m_readTimer.cancel();
m_connecting = false;
if(!error) { if(!error) {
m_connected = true; m_connected = true;
if(m_connectCallback) if(m_connectCallback)
g_dispatcher.addEvent(m_connectCallback); g_dispatcher.addEvent(m_connectCallback);
} else } else
handleError(error); handleError(error);
m_connecting = false;
} }
void Connection::onWrite(const boost::system::error_code& error, size_t) void Connection::onWrite(const boost::system::error_code& error, size_t)