def threaded(self):
""" A loop threaded function, so you can do another things meanwhile """
log("login thread start = {0}".format(self))
cnt = 0
while True:
log("Still waiting... {0}".format(cnt))
if self.pin_check(self.pin):
self.success()
self.close()
break
if self.canceled or cnt >= 220:
notify(get_str(32031))
break
cnt += 1
xbmc.Monitor().waitForAbort(4)
log("Stop waiting")
评论列表
文章目录