Put waiting state back if any

This commit is contained in:
Rasmus Melchior Jacobsen 2023-12-20 13:09:16 +01:00
parent f9d0daad80
commit 13c107e815

View file

@ -117,7 +117,10 @@ where
let state = cell.replace(State::None); let state = cell.replace(State::None);
match state { match state {
State::Signaled(res) => Some(res), State::Signaled(res) => Some(res),
_ => None, state => {
cell.set(state);
None
}
} }
}) })
} }