1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

flush io on complete

This commit is contained in:
Nikolay Kim
2018-08-08 09:12:32 -07:00
parent 992f7a11b3
commit 8eb9eb4247
2 changed files with 7 additions and 6 deletions

View File

@ -337,9 +337,10 @@ impl<T: AsyncWrite, H: 'static> Writer for H1Writer<T, H> {
}
}
if shutdown {
self.stream.poll_flush()?;
self.stream.shutdown()
} else {
Ok(Async::Ready(()))
self.stream.poll_flush()
}
}
}