diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index 850cd38a2..f8d13e49c 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -172,8 +172,14 @@ def run(): app.exec_() - # ensure we kill any other threads - sys.exit(0) + if sys.platform.startswith("darwin"): + # buggy on osx + from anki.sound import stopMplayer + stopMplayer() + os._exit(0) + else: + # ensure we kill any other threads + sys.exit(0) if __name__ == "__main__": run()