1
0

call jnius.detach on thread stop

This commit is contained in:
ThomasV
2016-06-04 12:58:29 +02:00
parent 5f3b6af2e0
commit bbe7b277d2
4 changed files with 9 additions and 2 deletions

View File

@@ -149,6 +149,12 @@ class DaemonThread(threading.Thread, PrintError):
with self.running_lock:
self.running = False
def on_stop(self):
if 'ANDROID_DATA' in os.environ:
import jnius
jnius.detach()
self.print_error("jnius detach")
self.print_error("stopped")
is_verbose = False