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)), }