diff --git a/actix-tls/src/accept/openssl.rs b/actix-tls/src/accept/openssl.rs index 054a5582..44877b24 100644 --- a/actix-tls/src/accept/openssl.rs +++ b/actix-tls/src/accept/openssl.rs @@ -115,7 +115,7 @@ impl Future for AcceptorServiceResponse { type Output = Result, SslError>; fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { - ready!(Pin::new(self.stream.as_mut().unwrap()).poll_connect(cx))?; + ready!(Pin::new(self.stream.as_mut().unwrap()).poll_accept(cx))?; Poll::Ready(Ok(self.stream.take().expect("SSL connect has resolved."))) } }