Skip to content

Commit

Permalink
Backport media thread join exception catch from 2.0 (9db3971) (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonengineer committed May 13, 2024
1 parent a728a77 commit ab10cdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyglet/media/mediathreads.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def stop(self):
with self._condition:
self._stopped = True
self._condition.notify()
self._thread.join()
try:
self._thread.join()
except RuntimeError:
# Ignore on unclean shutdown
pass

def sleep(self, timeout):
"""Wait for some amount of time, or until notified.
Expand Down

0 comments on commit ab10cdf

Please sign in to comment.