]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: Fix double decrease of lock timeout
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Dec 2020 22:41:59 +0000 (23:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Dec 2020 22:43:34 +0000 (23:43 +0100)
commit878e1a7c0f03233530e7675ae015aced069c971d
tree5c93b66b4b7e2f18898ac4911b405ca198875f54
parent0385e8ebd44ef340446767fe0ce100e30b820d47
alsactl: Fix double decrease of lock timeout

The state_lock() has a loop to wait for the lock file creation, and
the timeout value gets decremented twice mistakenly, which leads to a
half timeout (5 seconds) than expected 10 seconds.  Fix it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsactl/lock.c