User daemon instead of setDaemon

This commit is contained in:
Fotoente 2022-03-12 12:59:21 +01:00
parent 09a7efbcbf
commit b86ece6131

View file

@ -28,7 +28,7 @@ class MyBot(commands.Bot):
@tasks.loop(43200) @tasks.loop(43200)
async def loop_12h(self): async def loop_12h(self):
thread_update = threading.Thread(target=update) thread_update = threading.Thread(target=update)
thread_update.setDaemon(True) thread_update.daemon = True
thread_update.start() thread_update.start()
async def on_ready(self, ws): async def on_ready(self, ws):