4 Commits

2 changed files with 6 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ class Connector:
def send_hello(self) -> None: def send_hello(self) -> None:
"""Send a HELLO message to the server.""" """Send a HELLO message to the server."""
self.logger.debug("[*] Sending HELLO message...") self.logger.debug("[*] Sending HELLO message...")
hello_message: Message = Message.hello(self.mac_address) hello_message: Message = Message.Control.hello(self.mac_address)
self.send(hello_message) self.send(hello_message)
def close(self) -> None: def close(self) -> None:
@@ -218,7 +218,9 @@ class Connector:
self.on_message(message) self.on_message(message)
if message.ack_required: if message.ack_required:
ack_message: Message = Message.ack(message.id) ack_message: Message = Message.Control.ack(
message.id
)
self.send(ack_message) self.send(ack_message)
self._send_outbound() self._send_outbound()
except Exception as e: except Exception as e:

4
uv.lock generated
View File

@@ -318,8 +318,8 @@ test = [
[[package]] [[package]]
name = "judas-protocol" name = "judas-protocol"
version = "0.6.0" version = "0.8.0"
source = { git = "https://gitea.pufereq.pl/judas/judas_protocol.git#d16c1914ba343aed300f1c5fae0201370c3274de" } source = { git = "https://gitea.pufereq.pl/judas/judas_protocol.git#a805ccf38edffadc1b8c8b276e60758c86516cd3" }
[[package]] [[package]]
name = "markdown-it-py" name = "markdown-it-py"