handle async exception properly

This commit is contained in:
badaix 2017-09-26 07:51:58 +02:00
parent 841c105704
commit b58ecfdcf1
2 changed files with 5 additions and 4 deletions

View file

@ -84,6 +84,7 @@ void ClientConnection::start()
connected_ = true;
SLOG(NOTICE) << "Connected to " << socket_->remote_endpoint().address().to_string() << endl;
active_ = true;
sumTimeout_ = chronos::msec(0);
readerThread_ = new thread(&ClientConnection::reader, this);
}