mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-05 23:51:04 +03:00
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:
@@ -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)) => {
|
||||
|
||||
Reference in New Issue
Block a user