Skip to content

Commit

Permalink
Fix crashing when stream is already closed
Browse files Browse the repository at this point in the history
  • Loading branch information
jupiterbjy committed Mar 22, 2021
1 parent 27cf89d commit 1fa8220
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CUIAudioPlayer/Player/PlayerLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,4 +515,7 @@ def maintain_current_view(self):
self.audio_list._top_view = visible_idx

def _tui_destroy_callback(self):
self.stream.stop_stream()
try:
self.stream.stop_stream()
except RuntimeError:
pass

0 comments on commit 1fa8220

Please sign in to comment.