From 69a8503ee12a2e1c5e9a8d66d250f8adc885feb1 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Tue, 15 Apr 2025 10:28:19 +0800 Subject: [PATCH] [fix] need to DestroyPeer if NoSuchTransmissionId --- src/single_window/connection_status_window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/single_window/connection_status_window.cpp b/src/single_window/connection_status_window.cpp index 42d5c66..7405a7c 100644 --- a/src/single_window/connection_status_window.cpp +++ b/src/single_window/connection_status_window.cpp @@ -159,6 +159,8 @@ int Render::ConnectionStatusWindow( ImGui::IsKeyPressed(ImGuiKey_Enter)) { show_connection_status_window_ = false; re_enter_remote_id_ = true; + DestroyPeer(&props->peer_); + client_properties_.erase(props->remote_id_); } }