From 840c3549b44d37c63627a1375324f7d049062698 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 25 Apr 2009 01:29:07 +0900 Subject: [PATCH] call sys.exit() after exit from main loop so audio thread dies --- ankiqt/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index 5b08d732a..75b34fa89 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -175,5 +175,8 @@ def run(): app.exec_() + # ensure we kill any other threads + sys.exit(0) + if __name__ == "__main__": run()