mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed race condition
This commit is contained in:
parent
3de4010a47
commit
a0a0234d29
2 changed files with 3 additions and 2 deletions
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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue