mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
mediaplayer.py: Exit properly on SIGPIPE
This commit is contained in:
parent
9fa7bfc0cb
commit
d5112678c3
@ -110,6 +110,7 @@ def main():
|
|||||||
|
|
||||||
signal.signal(signal.SIGINT, signal_handler)
|
signal.signal(signal.SIGINT, signal_handler)
|
||||||
signal.signal(signal.SIGTERM, signal_handler)
|
signal.signal(signal.SIGTERM, signal_handler)
|
||||||
|
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||||
|
|
||||||
for player in manager.props.player_names:
|
for player in manager.props.player_names:
|
||||||
if arguments.player is not None and arguments.player != player.name:
|
if arguments.player is not None and arguments.player != player.name:
|
||||||
|
Loading…
Reference in New Issue
Block a user