openssl s/connect/accept

This commit is contained in:
Rob Ede 2020-12-29 00:23:50 +00:00
parent fcc2278518
commit 9985f6c630
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ impl<T: AsyncRead + AsyncWrite + Unpin> Future for AcceptorServiceResponse<T> {
type Output = Result<SslStream<T>, SslError>;
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
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.")))
}
}