propagates the hash-handler continuation result through both connection loops, allowing incoming-only rejection to terminate the connection while preserving existing login flows.

This commit is contained in:
rustdesk
2026-08-10 16:45:27 +08:00
parent d407db9fae
commit 947cb3f17b
4 changed files with 17 additions and 10 deletions

View File

@@ -1878,8 +1878,8 @@ impl<T: InvokeUiSession> Interface for Session<T> {
}
}
async fn handle_hash(&self, pass: &str, hash: Hash, peer: &mut Stream) {
handle_hash(self.lc.clone(), pass, hash, self, peer).await;
async fn handle_hash(&self, pass: &str, hash: Hash, peer: &mut Stream) -> bool {
handle_hash(self.lc.clone(), pass, hash, self, peer).await
}
async fn handle_login_from_ui(