Do not use asio cancel, because it is not portable. It will cause an exception on Windows XP. Just let the socket be closed.

This commit is contained in:
lotodore
2009-03-21 10:44:31 +00:00
parent ebac9c9574
commit 55a29f9a38
-7
View File
@@ -32,13 +32,6 @@ SessionData::SessionData(SOCKET sockfd, SessionId id, boost::shared_ptr<SenderIn
SessionData::~SessionData()
{
m_callback.SignalSessionTerminated(m_id);
// We are shutting down, so ignore any error.
try
{
m_socket->cancel();
} catch(...)
{
}
}
SessionId