[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

@@ -108,17 +108,12 @@ jobs:
with:
submodules: recursive
- name: Check libstdc++
run: |
strings /usr/lib/aarch64-linux-gnu/libstdc++.so.6 | grep GLIBCXX | tail
- name: Build CrossDesk
env:
CUDA_PATH: /usr/local/cuda
XMAKE_GLOBALDIR: /data
run: |
xmake b -vy --root crossdesk
ldd /path/to/your_binary | grep libstdc++
- name: Decode and save certificate
shell: bash

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();
}
}