don't send packets from a terminated stream

This commit is contained in:
PobreGato
2026-09-02 01:37:06 +03:00
parent 286e10f8fc
commit dc1a0ebe94
+3
View File
@@ -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 ();