backend: Always save the waker

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2024-01-16 19:08:55 +02:00
parent 2f4048eecf
commit 786ed391da
@@ -221,9 +221,8 @@ impl<Hash: BlockHash> Shared<Hash> {
// else, take whatever items, and save the waker if not done yet.
let items = std::mem::take(&mut details.items);
if !is_done {
details.waker = Some(waker.clone());
}
// Always save the waker.
details.waker = Some(waker.clone());
Some(items)
}