mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-06 06:48:20 +00:00
ensure connection close
This commit is contained in:
parent
ce050e250d
commit
97614b3930
2 changed files with 2 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ class _ConnectionTabPageState extends State<ConnectionTabPage>
|
|||
|
||||
void onRemoveId(String id) {
|
||||
DesktopTabBar.onClose(this, tabController, tabs, id);
|
||||
ffi(id).close();
|
||||
if (tabs.length == 0) {
|
||||
WindowController.fromWindowId(windowId()).close();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ class _FileManagerTabPageState extends State<FileManagerTabPage>
|
|||
|
||||
void onRemoveId(String id) {
|
||||
DesktopTabBar.onClose(this, tabController, tabs, id);
|
||||
ffi(id).close();
|
||||
if (tabs.length == 0) {
|
||||
WindowController.fromWindowId(windowId()).close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue