mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-21 15:07:13 +00:00
file cancel job; update android
This commit is contained in:
1 parent
7957efee5e
commit
4ca42faee9
6 files changed
+57
-44
No files matched your search
@@ -261,11 +261,14 @@ class ServerModel with ChangeNotifier {
|
||||
void onClientRemove(Map<String, dynamic> evt) {
|
||||
try {
|
||||
final id = int.parse(evt['id'] as String);
|
||||
_clients.remove(id);
|
||||
if(_clients.containsKey(id)){
|
||||
_clients.remove(id);
|
||||
}else{
|
||||
// reset the login dialog, to-do,it will close any showing dialog
|
||||
DialogManager.reset();
|
||||
}
|
||||
notifyListeners();
|
||||
} catch (e) {
|
||||
// singleWhere fail ,reset the login dialog
|
||||
DialogManager.reset();
|
||||
debugPrint("onClientRemove failed,error:$e");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user