Remove unpack_dispatch_and_ack method
This commit is contained in:
parent
7f27c43b30
commit
e270c7d5f8
@ -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 New Issue
Block a user