Use waitForAbort instead of sleep

also waitForAbort is in seconds not ms
This commit is contained in:
shaun 2015-04-12 13:01:44 +10:00
parent 5ffa40faf5
commit d0c7246de0
2 changed files with 7 additions and 3 deletions

View file

@ -302,7 +302,7 @@ class WebSocketThread(threading.Thread):
self.client.run_forever()
if(self.keepRunning):
self.logMsg("Client Needs To Restart")
if self.KodiMonitor.waitForAbort(10000):
if self.KodiMonitor.waitForAbort(5):
break
self.logMsg("Thread Exited")