Put waiting state back if any
This commit is contained in:
parent
f9d0daad80
commit
13c107e815
1 changed files with 4 additions and 1 deletions
|
@ -117,7 +117,10 @@ where
|
|||
let state = cell.replace(State::None);
|
||||
match state {
|
||||
State::Signaled(res) => Some(res),
|
||||
_ => None,
|
||||
state => {
|
||||
cell.set(state);
|
||||
None
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue