mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 13:34:54 +00:00
Fix restart not awaiting
This commit is contained in:
parent
d06e486c8b
commit
d1d789bf20
@ -204,8 +204,8 @@ class Session:
|
|||||||
log.debug("Session stopped")
|
log.debug("Session stopped")
|
||||||
|
|
||||||
async def restart(self):
|
async def restart(self):
|
||||||
self.stop()
|
await self.stop()
|
||||||
self.start()
|
await self.start()
|
||||||
|
|
||||||
async def net_worker(self):
|
async def net_worker(self):
|
||||||
log.info("NetWorkerTask started")
|
log.info("NetWorkerTask started")
|
||||||
|
Loading…
Reference in New Issue
Block a user