Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make wait noop if scheduled_task is nil
This can happen when the Debouncer has finished its work and we clear it from the current thread. The next call to refresh_debouncer_for creates a new Debouncer, but it doesn't have a scheduled_task yet. We only use the wait method in tests, to ensure that the debounces has finished its work. But if the scheduled_task is nil, we know that the debouncer has already finished its work.
- Loading branch information