chore(release): 0.4.0 #6
@@ -174,8 +174,17 @@ class Connector:
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
message: Message = Message.from_bytes(message_bytes)
|
message: Message = Message.from_bytes(message_bytes)
|
||||||
# handle incoming ACKs
|
|
||||||
if (
|
if (
|
||||||
|
message.category == Category.CONTROL
|
||||||
|
and message.action == ControlAction.CLOSE
|
||||||
|
):
|
||||||
|
self.logger.warning(
|
||||||
|
"[!] Received CLOSE command from server, shutting down."
|
||||||
|
)
|
||||||
|
self.running = False
|
||||||
|
break
|
||||||
|
# handle incoming ACKs
|
||||||
|
elif (
|
||||||
message.category == Category.CONTROL
|
message.category == Category.CONTROL
|
||||||
and message.action == ControlAction.ACK
|
and message.action == ControlAction.ACK
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user