Skip to content

Commit 77245fd

Browse files
committed
revert STATE_DEREGISTERED check to see what will happen
1 parent 17fc129 commit 77245fd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tokio/src/runtime/time/entry.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,11 @@ impl StateCell {
170170
// with relaxed ordering.
171171
let mut cur_state = self.state.load(Ordering::Relaxed);
172172
loop {
173-
// This entry is in the `guarded_list`, so it can not be removed
174-
// from the entry list with the same `level` and `slot`.
175173
// Because its state is STATE_DEREGISTERED, it has been fired.
176-
if cur_state == STATE_DEREGISTERED {
177-
break Err(cur_state);
178-
}
174+
175+
// if cur_state == STATE_DEREGISTERED {
176+
// break Err(cur_state);
177+
// }
179178

180179
// improve the error message for things like
181180
// https://github.com/tokio-rs/tokio/issues/3675

0 commit comments

Comments
 (0)