diff --git a/bumblebee/modules/pulseaudio.py b/bumblebee/modules/pulseaudio.py index 7578438..07fbd8d 100644 --- a/bumblebee/modules/pulseaudio.py +++ b/bumblebee/modules/pulseaudio.py @@ -87,13 +87,14 @@ class Module(bumblebee.engine.Module): for line in result.split("\n"): if device in line: found = True + continue if found == False: continue for pattern in self._patterns: if not pattern["expr"] in line: continue - if pattern["callback"](line) == False: - break + if pattern["callback"](line) == False and found == True: + return def state(self, widget): if self._mute: