Fix typo in comment

Co-authored-by: Sebastian Dröge <slomo@coaxion.net>
pull/104/head
Benoît Cortier 3 years ago committed by Sebastian Dröge
parent 4dd8888a9d
commit a4546af441
  1. 2
      src/lib.rs

@ -358,7 +358,7 @@ where
fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { fn poll_close(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
if self.closing { if self.closing {
// After queing it, we call `write_pending` to drive the close handshake to completion. // After queueing it, we call `write_pending` to drive the close handshake to completion.
match (*self).with_context(Some((ContextWaker::Write, cx)), |s| s.write_pending()) { match (*self).with_context(Some((ContextWaker::Write, cx)), |s| s.write_pending()) {
Ok(()) => Poll::Ready(Ok(())), Ok(()) => Poll::Ready(Ok(())),
Err(::tungstenite::Error::ConnectionClosed) => Poll::Ready(Ok(())), Err(::tungstenite::Error::ConnectionClosed) => Poll::Ready(Ok(())),

Loading…
Cancel
Save