Fix "RuntimeError: set_wakeup_fd" on Debian

This commit is contained in:
Fierelier 2020-11-21 14:28:46 +01:00
parent e77bf0de5e
commit 4701fe80f7
1 changed files with 4 additions and 2 deletions

View File

@ -608,7 +608,9 @@ def discordClient(token):
addGuiTask(gui,gui.updateConvs,(channels,))
guiLock.release()
client.run(token,bot = False)
loop.create_task(client.start(token,bot = False))
loop.run_forever()
#client.run(token,bot = False)
def main():
global config
@ -677,4 +679,4 @@ def main():
time.sleep(0.033)
if __name__ == "__main__":
main()
main()