Files
opencloud/services
Dominik Schmidt ca733e731f fix(search): run the debounced work once when both timers fire
Every pending space has a debounce timer and a timeout timer, and both
call the same work function. The function checked for a run in progress
before taking the mutex, so when both timers were due together, both
calls passed the check and the space was indexed twice at the same
time.

Take the mutex first and return when the work item is no longer the
pending one.

This is also what made "fires at the timeout even when continuously
debounced" flaky: its two timers are due about 50ms apart, which is
close enough on a busy CI runner.
2026-11-17 12:06:59 +01:00
..
2026-06-03 16:28:44 +02:00
2026-11-16 23:17:18 +00:00