Skip to content

Commit

Permalink
udev monitor: don't trigger actions when i3bar refresh is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrabug committed Apr 1, 2022
1 parent 77d918c commit bdfa420
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py3status/udev_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def trigger_actions(self, subsystem):
"""
Refresh all modules which subscribed to the given subsystem.
"""
if not self.py3_wrapper.i3bar_running:
return
for py3_module, trigger_action in self.udev_consumers[subsystem]:
if trigger_action in ON_TRIGGER_ACTIONS:
self.py3_wrapper.log(
Expand Down

0 comments on commit bdfa420

Please sign in to comment.