From e21d875ae7c2c5b1d323fb1e87570af8e67ea32c Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 4 Sep 2026 07:30:29 +0800 Subject: [PATCH] Use on_error for refused-channel dialog in tunnel_loop Redirect the refused-channel error through the standard on_error path instead of calling msgbox directly, for consistency with other errors in the port-forward flow. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab --- src/port_forward_mux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/port_forward_mux.rs b/src/port_forward_mux.rs index 1767f2bd2..371dbef43 100644 --- a/src/port_forward_mux.rs +++ b/src/port_forward_mux.rs @@ -679,7 +679,7 @@ mod tunnel { match msg.union { Some(message::Union::PortForwardChannel(ch)) => { if let Some(err) = handle.on_frame(ch) { - interface.msgbox("error", "Error", &err, ""); + interface.on_error(&err); } } Some(message::Union::TestDelay(t)) => {