Put waiting state back if any
This commit is contained in:
parent
f9d0daad80
commit
13c107e815
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user