Skip to content

Prevent monitor to froze..#104

Merged
IohannRabeson merged 1 commit into
mainfrom
prevent_debounce_to_block
Jun 16, 2026
Merged

Prevent monitor to froze..#104
IohannRabeson merged 1 commit into
mainfrom
prevent_debounce_to_block

Conversation

@IohannRabeson

Copy link
Copy Markdown
Owner

In the debouncer thread, debounce_at stores the instant when accumulated events should be flushed. The outer match checks debounce_at.checked_duration_since(Instant::now()) — but when the debounce period expires, checked_duration_since returns None, landing in the None arm even though debounce_at is still Some(past_time). The inner guard if debounce_at.is_none() then silently dropped all incoming events and never flushed the pending ones. The monitor appeared alive but effectively froze.

In the debouncer thread, debounce_at stores the instant when accumulated events should be flushed. The outer match checks debounce_at.checked_duration_since(Instant::now()) — but when the debounce period expires, checked_duration_since returns None, landing in the None arm even though debounce_at is still Some(past_time). The inner guard if debounce_at.is_none() then silently dropped all incoming events and never flushed the pending ones. The monitor appeared alive but effectively froze.
@IohannRabeson IohannRabeson merged commit 82b2830 into main Jun 16, 2026
3 checks passed
@IohannRabeson IohannRabeson deleted the prevent_debounce_to_block branch June 16, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant