Fix GUI locks in conversationUpdate()
This commit is contained in:
parent
ff1ea3f087
commit
c415909e4d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue