RustDesk/src/server
fufesou 4d2d2118a2
Fix/terminal tab close persistent (#14359)
* fix(terminal): ensure tab close is resilient to session cleanup failures

- Wrap _closeTerminalSessionIfNeeded in isolated try/catch so that
  tabController.closeBy always executes even if FFI calls throw
- Add clarifying comment in handleWindowCloseButton for single-tab
  audit dialog flow

* fix(terminal): fix session reconnect ID mismatch and tab close race condition

Remap surviving persistent sessions to client-requested terminal IDs on
reconnect, preventing new shell creation when IDs are non-contiguous.
Snapshot peerTabCount before async operations in _closeTab to avoid race
with concurrent _closeAllTabs clearing the tab controller.
Remove debug log statements.

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2026-02-21 11:06:13 +08:00
..
audio_service.rs feat: macos, audio, loopback (#10025) 2024-11-23 19:41:27 +09:00
clipboard_service.rs Feat/macos clipboard file (#10939) 2025-02-28 00:46:46 +08:00
connection.rs feat(macos): initial privacy mode support [a simple try] (#14102) 2026-01-27 16:38:37 +08:00
dbus.rs
display_service.rs fix: wayland controlled side, cursor misalignment (#13537) 2025-11-18 00:37:15 +08:00
input_service.rs feat(wayland): keyboard mode, legacy translate (#14317) 2026-02-15 16:43:21 +08:00
portable_service.rs feat: show my cursor (#12745) 2025-08-28 15:20:01 +08:00
printer_service.rs refact: remove unnecessary printing (#12000) 2025-06-06 14:52:01 +08:00
rdp_input.rs feat(wayland): keyboard mode, legacy translate (#14317) 2026-02-15 16:43:21 +08:00
service.rs make clipboard dropped after no sub 2024-07-01 00:24:23 +08:00
terminal_helper.rs fix(terminal): linux, macOS, win as the controlled (#13930) 2026-01-07 16:07:14 +08:00
terminal_service.rs Fix/terminal tab close persistent (#14359) 2026-02-21 11:06:13 +08:00
uinput.rs feat(wayland): keyboard mode, legacy translate (#14317) 2026-02-15 16:43:21 +08:00
video_qos.rs fix: typos in src/ and subdirectories (#11727) 2025-09-17 13:37:44 +08:00
video_service.rs fix: video service, wait timeout (#13208) 2025-10-22 13:19:08 +08:00
wayland.rs fix: wayland controlled side, cursor misalignment (#13537) 2025-11-18 00:37:15 +08:00