actix-web-actors: take the internal buffer when yielding

This commit is contained in:
asonix 2024-05-18 12:31:41 -05:00
parent fff45b28f4
commit f011dfb234
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ where
}
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 {
Poll::Pending
} else {