diff --git a/pyglet/media/mediathreads.py b/pyglet/media/mediathreads.py index 08a2c618b..e5112d057 100644 --- a/pyglet/media/mediathreads.py +++ b/pyglet/media/mediathreads.py @@ -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.