mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
work around osx not shutting down properly
This commit is contained in:
parent
56e8e4b3eb
commit
56d507c22d
1 changed files with 8 additions and 2 deletions
|
@ -172,8 +172,14 @@ def run():
|
||||||
|
|
||||||
app.exec_()
|
app.exec_()
|
||||||
|
|
||||||
# ensure we kill any other threads
|
if sys.platform.startswith("darwin"):
|
||||||
sys.exit(0)
|
# 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__":
|
if __name__ == "__main__":
|
||||||
run()
|
run()
|
||||||
|
|
Loading…
Reference in a new issue