Prevent trying to assign capacity to streams that were just reset

This commit is contained in:
Sean McArthur
2019-05-31 14:27:46 -07:00
parent 45c4e0336f
commit b8f1f0ccf1
2 changed files with 18 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ where
B: IntoBuf + 'static,
{
fn run<F: Future>(&mut self, f: F) -> Result<F::Item, F::Error> {
use futures::future::{self, Future};
use futures::future;
use futures::future::Either::*;
let res = future::poll_fn(|| self.poll()).select2(f).wait();