mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +00:00
Make restart async
This commit is contained in:
parent
a9ccbaca19
commit
0b03612bc7
1 changed files with 3 additions and 3 deletions
|
|
@ -207,9 +207,9 @@ class Session:
|
|||
|
||||
log.debug("Session stopped")
|
||||
|
||||
def restart(self):
|
||||
self.stop()
|
||||
self.start()
|
||||
async def restart(self):
|
||||
await self.stop()
|
||||
await self.start()
|
||||
|
||||
def pack(self, message: Message):
|
||||
data = Long(self.current_salt.salt) + self.session_id + message.write()
|
||||
|
|
|
|||
Loading…
Reference in a new issue