mokasin/apw — pull request #9 by jlep (2014-01-04 12:21:11+00:00)
Title: Wait for pacmd process to end before updating values

Sometimes values are read from pacmd before the first execution of pacmd was able to update them. This can cause the mute status to be left in the wrong state and displayed incorrectly. Also you would have to press the mute button twice in order to toggle mute back to its old state.

This patch fixes the issue by waiting for the first pacmd process to end before updating the new values.