workaround for wrong password input hanging

This commit is contained in:
rustdesk 2022-04-18 23:41:43 +08:00
parent 915edf49ab
commit f95f9e408a

View File

@ -236,7 +236,14 @@ function msgbox(type, title, content, callback=null, height=180, width=500, hasR
return;
}
handler.login(res.password, res.remember);
if (!is_port_forward) handler.msgbox("connecting", "Connecting...", "Logging in...");
if (!is_port_forward) {
// Specially handling file transfer for no permission hanging issue (including 60ms
// timer in setPermission.
// For wrong password input hanging issue, we can not use handler.msgbox.
// But how about wrong password for file transfer?
if (is_file_transfer) handler.msgbox("connecting", "Connecting...", "Logging in...");
else msgbox("connecting", "Connecting...", "Logging in...");
}
};
} else if (type.indexOf("custom") < 0 && !is_port_forward && !callback) {
callback = function() { view.close(); }