mediaplayer.py: Exit properly on SIGPIPE

pull/1329/head
Maëlys Bras de fer 2021-11-27 23:07:26 +01:00 committed by GitHub
parent 9fa7bfc0cb
commit d5112678c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ def main():
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
for player in manager.props.player_names:
if arguments.player is not None and arguments.player != player.name: