mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
delete non-responding streams
This commit is contained in:
parent
4e54fbec08
commit
cfcec8229c
@ -206,8 +206,6 @@ namespace stream
|
|||||||
Close ();
|
Close ();
|
||||||
m_IsOpen = false;
|
m_IsOpen = false;
|
||||||
m_IsReset = true;
|
m_IsReset = true;
|
||||||
m_ReceiveTimer.cancel ();
|
|
||||||
m_LocalDestination.DeleteStream (shared_from_this ());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,6 +416,8 @@ namespace stream
|
|||||||
p->len = size;
|
p->len = size;
|
||||||
m_Service.post (std::bind (&Stream::SendPacket, shared_from_this (), p));
|
m_Service.post (std::bind (&Stream::SendPacket, shared_from_this (), p));
|
||||||
LogPrint ("FIN sent");
|
LogPrint ("FIN sent");
|
||||||
|
m_ReceiveTimer.cancel ();
|
||||||
|
m_LocalDestination.DeleteStream (shared_from_this ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -554,7 +554,6 @@ namespace stream
|
|||||||
m_IsOpen = false;
|
m_IsOpen = false;
|
||||||
m_IsReset = true;
|
m_IsReset = true;
|
||||||
m_ReceiveTimer.cancel ();
|
m_ReceiveTimer.cancel ();
|
||||||
m_LocalDestination.DeleteStream (shared_from_this ());
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user