mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
fixed race condition
This commit is contained in:
3
SAM.cpp
3
SAM.cpp
@@ -59,6 +59,7 @@ namespace stream
|
||||
default:
|
||||
;
|
||||
}
|
||||
m_Socket.close ();
|
||||
delete this;
|
||||
}
|
||||
|
||||
@@ -447,7 +448,7 @@ namespace stream
|
||||
{
|
||||
LogPrint ("SAM stream read error: ", ecode.message ());
|
||||
if (ecode != boost::asio::error::operation_aborted)
|
||||
Terminate ();
|
||||
m_Socket.get_io_service ().post (boost::bind (&SAMSocket::Terminate, this));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user