From f95f9e408a2d3d0079f3f279f5777675fd543922 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 18 Apr 2022 23:41:43 +0800 Subject: [PATCH] workaround for wrong password input hanging --- src/ui/common.tis | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ui/common.tis b/src/ui/common.tis index 68cce9c28..3ff0cd73c 100644 --- a/src/ui/common.tis +++ b/src/ui/common.tis @@ -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(); }