mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
fixed infinite loop
This commit is contained in:
@@ -63,8 +63,9 @@ namespace stream
|
|||||||
m_ResendTimer.cancel ();
|
m_ResendTimer.cancel ();
|
||||||
if (m_SendHandler)
|
if (m_SendHandler)
|
||||||
{
|
{
|
||||||
m_SendHandler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted));
|
auto handler = m_SendHandler;
|
||||||
m_SendHandler = nullptr;
|
m_SendHandler = nullptr;
|
||||||
|
handler (boost::asio::error::make_error_code (boost::asio::error::operation_aborted));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user