Prevent exceptions when closing sockets.

This commit is contained in:
lotodore
2009-08-17 10:11:51 +00:00
parent e420cae48c
commit 6eb25757bc
4 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ ClientThread::Main()
}
// Close the socket.
boost::system::error_code ec;
GetContext().GetSessionData()->GetAsioSocket()->close();
GetContext().GetSessionData()->GetAsioSocket()->close(ec);
// Set a state which does not do anything.
SetState(CLIENT_FINAL_STATE::Instance());
// Cancel timers.