diff --git a/xpartamupp/modbot.py b/xpartamupp/modbot.py index 22825fa..79318ea 100755 --- a/xpartamupp/modbot.py +++ b/xpartamupp/modbot.py @@ -373,7 +373,7 @@ async def _reconnect(self, _) -> None: also cancels all running unmute tasks. These tasks are being rescheduled once a new connection got established. """ - for key in self.unmute_tasks: + for key in list(self.unmute_tasks): try: task = self.unmute_tasks.pop(key) except KeyError: