Fixed nasty cleanup crash on Windows.
This commit is contained in:
1 parent
4a8f1e7692
commit
ebac9c9574
6 files changed
+59
-39
No files matched your search
@@ -32,7 +32,13 @@ SessionData::SessionData(SOCKET sockfd, SessionId id, boost::shared_ptr<SenderIn
|
||||
SessionData::~SessionData()
|
||||
{
|
||||
m_callback.SignalSessionTerminated(m_id);
|
||||
m_socket->cancel();
|
||||
// We are shutting down, so ignore any error.
|
||||
try
|
||||
{
|
||||
m_socket->cancel();
|
||||
} catch(...)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
SessionId
|
||||
|
||||
Reference in new issue
Block a user