mirror of https://github.com/fafhrd91/actix-web
actix-web-actors: take the internal buffer when yielding
This commit is contained in:
parent
fff45b28f4
commit
f011dfb234
|
@ -710,7 +710,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
if !this.buf.is_empty() {
|
if !this.buf.is_empty() {
|
||||||
Poll::Ready(Some(Ok(this.buf.split().freeze())))
|
Poll::Ready(Some(Ok(std::mem::take(&mut this.buf).freeze())))
|
||||||
} else if this.fut.alive() && !this.closed {
|
} else if this.fut.alive() && !this.closed {
|
||||||
Poll::Pending
|
Poll::Pending
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue