RustDesk/src
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
..
client feat(fs): delegate win --server file reading to CM (#13736) 2025-12-28 15:39:35 +08:00
hbbs_http fix is_public (#13701) 2025-12-02 14:54:56 +08:00
lang Fix/linux shortcuts inhibit (#14302) 2026-02-11 16:11:47 +08:00
platform fix: lte should be lt like in linux.rs (#14344) 2026-02-19 22:24:32 +08:00
plugin refact: remove unnecessary printing (#12000) 2025-06-06 14:52:01 +08:00
privacy_mode feat(macos): initial privacy mode support [a simple try] (#14102) 2026-01-27 16:38:37 +08:00
server Fix/terminal tab close persistent (#14359) 2026-02-21 11:06:13 +08:00
ui keep-awake-during-incoming-sessions (#14082) 2026-01-21 16:25:57 +08:00
whiteboard feat: cursor, linux, Xwayland (#12859) 2025-09-06 20:35:51 +08:00
auth_2fa.rs trust this device to skip 2fa (#9012) 2024-08-12 18:08:33 +08:00
cli.rs
client.rs edge scroll thickness adjustment (#13445) 2025-11-07 01:15:13 +08:00
clipboard.rs fix: correct typos and improve code clarity (#14341) 2026-02-17 14:29:50 +08:00
clipboard_file.rs feat: clipboard files, audit (#12730) 2025-08-25 22:29:53 +08:00
common.rs Remove unused option_env!(...) (#13959) 2026-02-03 20:55:34 +08:00
core_main.rs change quick support filename detection (#14050) 2026-01-15 13:47:39 +08:00
custom_server.rs A=b, A case insensitive (#9976) 2024-11-20 19:44:24 +08:00
flutter.rs fix: wayland controlled side, cursor misalignment (#13537) 2025-11-18 00:37:15 +08:00
flutter_ffi.rs Fix/linux shortcuts inhibit (#14302) 2026-02-11 16:11:47 +08:00
hbbs_http.rs refact: tls, native-tls fallback rustls-tls (#13263) 2025-11-03 23:21:01 +08:00
ipc.rs Allow configuring remote control permissions for different users (#13974) 2026-01-09 00:21:28 +08:00
kcp_stream.rs fix kcp_stream 2025-06-13 00:30:21 +08:00
keyboard.rs feat: Add relative mouse mode (#13928) 2026-01-09 10:03:14 +08:00
lan.rs refact: suppress warns on macos (#12449) 2025-08-18 15:09:11 +08:00
lang.rs fix: custom client, contains RustDesk (#13783) 2025-12-11 21:17:42 +08:00
lib.rs feat: Add relative mouse mode (#13928) 2026-01-09 10:03:14 +08:00
main.rs refact: rust backtrace logs (#13467) 2025-11-10 15:43:46 +08:00
naming.rs
port_forward.rs show TCP/UDP/IPv6 in tooltip (#12613) 2025-08-11 16:13:31 +08:00
privacy_mode.rs feat(macos): initial privacy mode support [a simple try] (#14102) 2026-01-27 16:38:37 +08:00
rendezvous_mediator.rs Fix some single device multiple ids scenarios on MacOS (#14196) 2026-02-15 16:12:26 +08:00
server.rs Fix some single device multiple ids scenarios on MacOS (#14196) 2026-02-15 16:12:26 +08:00
service.rs missed file 2025-01-01 23:11:38 +08:00
tray.rs fix hide-tray=Y causing The application “RustDesk.app” is not open anymore. https://github.com/rustdesk/rustdesk/discussions/10210 (#14127) 2026-01-23 19:09:33 +08:00
ui.rs Allow configuring remote control permissions for different users (#13974) 2026-01-09 00:21:28 +08:00
ui_cm_interface.rs Allow configuring remote control permissions for different users (#13974) 2026-01-09 00:21:28 +08:00
ui_interface.rs Allow configuring remote control permissions for different users (#13974) 2026-01-09 00:21:28 +08:00
ui_session_interface.rs feat: Add relative mouse mode (#13928) 2026-01-09 10:03:14 +08:00
updater.rs fix: correct typos and improve code clarity (#14341) 2026-02-17 14:29:50 +08:00
virtual_display_manager.rs fix: uninstall, idd (#13142) 2025-10-12 09:14:21 +08:00