mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-14 13:12:18 +02:00
fixed infinite loop
This commit is contained in:
parent
7c660ee556
commit
2741e94a72
1 changed files with 2 additions and 1 deletions
|
@ -63,8 +63,9 @@ namespace stream
|
|||
m_ResendTimer.cancel ();
|
||||
if (m_SendHandler)
|
||||
{
|
||||
m_SendHandler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted));
|
||||
auto handler = m_SendHandler;
|
||||
m_SendHandler = nullptr;
|
||||
handler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue