From 42aeeedccec93228cfcba64c6dc200421d99f519 Mon Sep 17 00:00:00 2001 From: James Prestwich <10149425+prestwich@users.noreply.github.com> Date: Thu, 19 Aug 2021 00:01:49 -0700 Subject: [PATCH] bug: log streams properly end when internal stream closes (#387) --- ethers-contract/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-contract/src/stream.rs b/ethers-contract/src/stream.rs index 79d6bae3..b86e51de 100644 --- a/ethers-contract/src/stream.rs +++ b/ethers-contract/src/stream.rs @@ -65,7 +65,7 @@ where let res = res.map(|inner| (inner, meta)); Poll::Ready(Some(res)) } - None => Poll::Pending, + None => Poll::Ready(None), } } }