mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 16:04:51 +00:00
Remove unpack_dispatch_and_ack method
This commit is contained in:
parent
7f27c43b30
commit
e270c7d5f8
1 changed files with 49 additions and 52 deletions
|
|
@ -259,13 +259,6 @@ class Session:
|
|||
break
|
||||
|
||||
try:
|
||||
self.unpack_dispatch_and_ack(packet)
|
||||
except Exception as e:
|
||||
log.error(e, exc_info=True)
|
||||
|
||||
log.debug("{} stopped".format(name))
|
||||
|
||||
def unpack_dispatch_and_ack(self, packet: bytes):
|
||||
data = self.unpack(BytesIO(packet))
|
||||
|
||||
messages = (
|
||||
|
|
@ -315,6 +308,10 @@ class Session:
|
|||
pass
|
||||
else:
|
||||
self.pending_acks.clear()
|
||||
except Exception as e:
|
||||
log.error(e, exc_info=True)
|
||||
|
||||
log.debug("{} stopped".format(name))
|
||||
|
||||
def ping(self):
|
||||
log.debug("PingThread started")
|
||||
|
|
|
|||
Loading…
Reference in a new issue