fix not waiting after rename

This commit is contained in:
udf 2018-11-14 16:22:43 +02:00
parent 7c90f97a97
commit 3ea3808ac2
Signed by untrusted user: kate
GPG Key ID: E40724BAD73AF77B
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ async def on_name(event):
func=lambda e: e.deleted_id == event.message.id func=lambda e: e.deleted_id == event.message.id
))) )))
if await wait_for_delete(deleted_fut, MULTI_EDIT_TIMEOUT): if await wait_for_delete(deleted_fut, MULTI_EDIT_TIMEOUT):
await asyncio.sleep(MULTI_EDIT_TIMEOUT)
return return
if await wait_for_delete(deleted_fut, REVERT_TIMEOUT) or lock.locked(): if await wait_for_delete(deleted_fut, REVERT_TIMEOUT) or lock.locked():
return return