Fix GUI locks in conversationUpdate()

This commit is contained in:
Fierelier 2020-11-21 01:54:16 +01:00
parent ff1ea3f087
commit c415909e4d
1 changed files with 2 additions and 3 deletions

View File

@ -601,13 +601,12 @@ def discordClient(token):
async def conversationUpdate():
channels = client.private_channels
guiLock.acquire()
for gui in openGuis:
if gui.type != "conversationList": continue
if gui.closed == True: continue
if channels == gui.convs: continue
guiLock.acquire()
addGuiTask(gui,gui.updateConvs,(channels,))
guiLock.release()
guiLock.release()
client.run(token,bot = False)