next soundboard fix for auto-timer

This commit is contained in:
oberon 2026-02-18 22:50:56 +01:00
parent cc99e2b49d
commit 14108a8077
2 changed files with 2 additions and 1 deletions

View File

@ -428,8 +428,9 @@ def api_soundboard_auto_start():
if dmax < dmin: dmax = dmin
delay = rand_between(dmin, dmax) * 60
# erst laufenden Timer stoppen, bevor wir Lock nehmen
_stop_auto_random_internal()
with auto_random_lock:
_stop_auto_random_internal()
state.auto_random_active = True
auto_random_params['imin'] = imin
auto_random_params['imax'] = imax