diff --git a/src/client/connection.rs b/src/client/connection.rs index 802a33c..8960f4a 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -22,7 +22,6 @@ impl Connection { server_identity: Option, ) -> Result { Ok(Self { - socket_connection: socket_connection.clone(), tls_client_connection: match TlsClientConnection::new( &socket_connection, server_identity.as_ref(), @@ -48,6 +47,7 @@ impl Connection { } Err(e) => return Err(Error::TlsClientConnection(e)), }, + socket_connection, }) }