drop unsent messages if session disconnects

This commit is contained in:
orignal 2024-01-30 18:02:14 -05:00
parent e40b656ecf
commit 0ca782ed71
2 changed files with 4 additions and 0 deletions

View file

@ -262,6 +262,8 @@ namespace transport
m_SentHandshakePacket.reset (nullptr);
m_SessionConfirmedFragment.reset (nullptr);
m_PathChallenge.reset (nullptr);
for (auto& it: m_SendQueue)
it->Drop ();
m_SendQueue.clear ();
SetSendQueueSize (0);
m_SentPackets.clear ();