mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 15:25:41 +00:00
Clear stored_msg_ids on session stop
This commit is contained in:
@@ -149,6 +149,8 @@ class Session:
|
|||||||
async def stop(self):
|
async def stop(self):
|
||||||
self.is_started.clear()
|
self.is_started.clear()
|
||||||
|
|
||||||
|
self.stored_msg_ids.clear()
|
||||||
|
|
||||||
self.ping_task_event.set()
|
self.ping_task_event.set()
|
||||||
|
|
||||||
if self.ping_task is not None:
|
if self.ping_task is not None:
|
||||||
|
Reference in New Issue
Block a user