From efc9b6278627000c3f3cbc29dc0f98cb92f4c4ed Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 30 Nov 2024 18:59:06 +0200 Subject: [PATCH] use Cancellable::NONE for re-handshake action --- src/client/connection.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/client/connection.rs b/src/client/connection.rs index 00278cc..8863f31 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -71,14 +71,11 @@ impl Connection { } } - /// Request force handshake for `Self` + /// Force non-cancellable handshake request for `Self` /// * useful for certificate change in runtime /// * support guest and user sessions pub fn rehandshake(&self) -> Result<(), Error> { - match self - .tls_client_connection()? - .handshake(self.cancellable.as_ref()) - { + match self.tls_client_connection()?.handshake(Cancellable::NONE) { Ok(()) => Ok(()), Err(e) => Err(Error::Rehandshake(e)), }