Fix Python 3.9 compatibility

Replaced threading.Thread.isAlive() with threading.Thread.is_alive()
This commit is contained in:
w1kl4s 2020-10-14 18:07:29 +02:00
parent 905f71fa52
commit 1a7ae9ecc6
3 changed files with 3 additions and 3 deletions

View file

@ -123,7 +123,7 @@ class Module(core.input.Object):
def update_wrapper(self):
if self.background == True:
if self.__thread and self.__thread.isAlive():
if self.__thread and self.__thread.is_alive():
return # skip this update interval
self.__thread = threading.Thread(target=self.internal_update, args=(True,))
self.__thread.start()