From 510fe51bf86827217e4012b0e0f20aed95d8f5a1 Mon Sep 17 00:00:00 2001 From: shaun Date: Sat, 4 Apr 2015 10:13:36 +1100 Subject: [PATCH] sleep for 1 sec in the main loop --- resources/lib/UserClient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/UserClient.py b/resources/lib/UserClient.py index 4b99ddc4..a8834903 100644 --- a/resources/lib/UserClient.py +++ b/resources/lib/UserClient.py @@ -330,6 +330,10 @@ class UserClient(threading.Thread): if self.stopClient == True: break + if self.KodiMonitor.waitForAbort(1): + # Abort was requested while waiting. We should exit + break + self.logMsg("|---- UserClient Stopped ----|", 0) def stopClient(self):