Skip to content

Commit

Permalink
Merge pull request #2 from jonatan1609/patch-1
Browse files Browse the repository at this point in the history
Fix an issue with removing old listeners
  • Loading branch information
Cezar H authored Mar 25, 2021
2 parents 86d9d7c + eb81def commit 2d71f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyromod/listen/listen.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def ask(self, chat_id, text, filters=None, timeout=None, *args, **kwargs):

@patchable
def clear_listener(self, chat_id, future):
if future == self.listening[chat_id]:
if future == self.listening[chat_id]["future"]:
self.listening.pop(chat_id, None)

@patchable
Expand Down

0 comments on commit 2d71f19

Please sign in to comment.