volumealsa: fix unloading and add restart logic
authorHenry Gebhardt <hsggebhardt@googlemail.com>
Thu, 17 May 2012 14:06:40 +0000 (16:06 +0200)
committerMartin Bagge / brother <brother@bsnet.se>
Sun, 20 May 2012 13:57:28 +0000 (15:57 +0200)
commitad987a0c220103d4535f4b85645a2665a7236b3d
tree38d1190d9023f097d046e07ac920e76f68d210d9
parent61910adf43e2d573c0adb95a4130dbd1135f1fe0
volumealsa: fix unloading and add restart logic

When unloading the volumealsa plugin and then killing the pulseaudio
daemon would result in a segmentation fault for lxpanel, because the
plugin left the channel that listens for ALSA events open.

This commit also adds restart-logic to the plugin when an error occurs.
src/plugins/volumealsa/volumealsa.c