drop unsent messages if session disconnects

This commit is contained in:
orignal committed 2024-01-30 18:02:14 -05:00
1 parent e40b656ecf
commit 0ca782ed71
2 files changed
+4

No files matched your search

+2
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 ();