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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
This commit is contained in:
rustdesk
2026-09-04 07:30:29 +08:00
parent 3aca5a4c33
commit e21d875ae7

View File

@@ -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)) => {