From 3ea3808ac29429268e81cb5f8313c9577adc8e94 Mon Sep 17 00:00:00 2001 From: udf Date: Wed, 14 Nov 2018 16:22:43 +0200 Subject: [PATCH] fix not waiting after rename --- stdplugins/sp_prog_rename.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stdplugins/sp_prog_rename.py b/stdplugins/sp_prog_rename.py index 996a8b9..3ff5bfd 100644 --- a/stdplugins/sp_prog_rename.py +++ b/stdplugins/sp_prog_rename.py @@ -59,6 +59,7 @@ async def on_name(event): func=lambda e: e.deleted_id == event.message.id ))) if await wait_for_delete(deleted_fut, MULTI_EDIT_TIMEOUT): + await asyncio.sleep(MULTI_EDIT_TIMEOUT) return if await wait_for_delete(deleted_fut, REVERT_TIMEOUT) or lock.locked(): return