Add a lock for resolving events

This commit is contained in:
Lonami Exo
2018-06-15 10:11:22 +02:00
parent df15ee421c
commit 31c94ec184
2 changed files with 9 additions and 3 deletions

View File

@@ -196,6 +196,7 @@ class TelegramBaseClient(abc.ABC):
# Some further state for subclasses
self._event_builders = []
self._events_pending_resolve = []
self._event_resolve_lock = asyncio.Lock()
# Default parse mode
self._parse_mode = markdown