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

do no stop on write_eof

This commit is contained in:
Nikolay Kim
2018-01-07 19:10:42 -08:00
parent f802fe09e6
commit f90bc0caae
3 changed files with 2 additions and 6 deletions

View File

@ -40,7 +40,6 @@ impl<A, S> ActorContext for HttpContext<A, S> where A: Actor<Context=Self>
{
/// Stop actor execution
fn stop(&mut self) {
self.stream.push_back(Frame::Payload(None));
self.inner.stop();
}
@ -142,7 +141,7 @@ impl<A, S> HttpContext<A, S> where A: Actor<Context=Self> {
/// Indicate end of streamimng payload. Also this method calls `Self::close`.
#[inline]
pub fn write_eof(&mut self) {
self.stop();
self.stream.push_back(Frame::Payload(None));
}
/// Returns drain future