mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
fix: keep GnuTLS connection startup cancellable
This commit is contained in:
2 files changed
+2
-2
No files matched your search
Submodule crates/openconnect/deps/openconnect updated: 0d69b28c14...821a8d26d0.
@@ -765,7 +765,7 @@ mod tests {
|
||||
}
|
||||
};
|
||||
vpn.disconnect();
|
||||
let result = rx.recv_timeout(Duration::from_secs(10));
|
||||
let result = rx.recv_timeout(Duration::from_secs(2));
|
||||
drop(peer); // Release the peer even if cancellation regresses.
|
||||
worker.join().unwrap();
|
||||
assert_ne!(result.expect("Cancellation did not interrupt TLS"), 0);
|
||||
|
||||
Reference in new issue
Block a user