This commit is contained in:
rustdesk
2022-05-02 00:02:41 +08:00
parent 663c5bc355
commit 0e4e7fcb9b
2 changed files with 4 additions and 8 deletions

View File

@@ -296,9 +296,7 @@ handler.removeConnection = function(id) {
});
if (i < 0) return;
connections.splice(i, 1);
if (connections.length == 0) {
handler.exit();
} else {
if (connections.length > 0) {
if (body.cur >= i && body.cur > 0) body.cur -= 1;
update();
}