Prevent exceptions when closing sockets.

This commit is contained in:
lotodore committed 2009-08-17 10:11:51 +00:00
1 parent e420cae48c
commit 6eb25757bc
4 files changed
+15 -8

No files matched your search

+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.