Skip to content

Commit

Permalink
fix: add nullity check before calling FFMPEGMediaPlayer.run.kill() (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino authored Nov 27, 2024
1 parent 9cad443 commit 0b6f20b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def play(self):

def stop(self):
try:
self.run.kill()
if self.run:
self.run.kill()
except OSError:
pass

Expand Down

0 comments on commit 0b6f20b

Please sign in to comment.