[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: with:
submodules: recursive submodules: recursive
- name: Check libstdc++
run: |
strings /usr/lib/aarch64-linux-gnu/libstdc++.so.6 | grep GLIBCXX | tail
- name: Build CrossDesk - name: Build CrossDesk
env: env:
CUDA_PATH: /usr/local/cuda CUDA_PATH: /usr/local/cuda
XMAKE_GLOBALDIR: /data XMAKE_GLOBALDIR: /data
run: | run: |
xmake b -vy --root crossdesk xmake b -vy --root crossdesk
ldd /path/to/your_binary | grep libstdc++
- name: Decode and save certificate - name: Decode and save certificate
shell: bash shell: bash

View File

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