found one blank cm, still not find reason

This commit is contained in:
rustdesk
2022-04-29 19:40:53 +08:00
parent e2c9b78254
commit 1235edb239
2 changed files with 6 additions and 1 deletions

View File

@@ -290,6 +290,7 @@ handler.removeConnection = function(id) {
connections.map(function(c, idx) {
if (c.id == id) i = idx;
});
if (i < 0) return;
connections.splice(i, 1);
if (connections.length == 0) {
handler.exit();