mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-05 23:08:01 +00:00
don't send packets from a terminated stream
This commit is contained in:
@@ -1531,6 +1531,9 @@ namespace stream
|
||||
|
||||
void Stream::SendPackets (const std::list<Packet *>& packets)
|
||||
{
|
||||
// the local destination is a reference and it can be gone already: a handler
|
||||
// queued before the destination was stopped runs after it
|
||||
if (m_Status == eStreamStatusTerminated) return;
|
||||
if (!m_RemoteLeaseSet)
|
||||
{
|
||||
CancelRemoteLeaseChange ();
|
||||
|
||||
Reference in New Issue
Block a user