Skip to content

Commit dbfb9e6

Browse files
committed
fix incomplete timer unqueuing that prevent any further timer in the same task
1 parent e4e06ab commit dbfb9e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

embassy-time-queue-utils/src/queue_integrated.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ impl Queue {
130130
// Remove it
131131
prev.set(item.next.get());
132132
item.next.set(None);
133+
// Ensure there is no waker left in items that are not part of the timer queue
134+
// even when the waker was not called (for timer that never expires, ie expires_at = u64::MAX)
135+
item.waker = None;
133136
}
134137
}
135138
}

0 commit comments

Comments
 (0)