[fix] release all peers when settings modified

This commit is contained in:
dijunkun
2025-09-10 22:53:07 +08:00
parent 274b7fcedc
commit 43338aaf02
3 changed files with 2 additions and 7 deletions

View File

@@ -236,7 +236,7 @@ int Render::SettingWindow() {
// Recreate peer instance
if (!stream_window_inited_) {
LOG_INFO("Recreate peer instance");
DestroyPeer(&peer_);
CleanupPeers();
CreateConnectionPeer();
}
}