Skip to content

Commit e8ebcad

Browse files
committed
Fix loop
1 parent 014e578 commit e8ebcad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/session/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ async def invoke(
445445

446446
# restart was never being called after Exception block
447447
if not self.restart_event.is_set():
448-
self.loop.create_task(self.restart())
448+
self.client.loop.create_task(self.restart())
449449
else:
450450
# multiple Exceptions can be raised in a row, so we need to wait for the restart to finish
451451
try:

0 commit comments

Comments
 (0)