diff --git a/pyproject.toml b/pyproject.toml index 8513e48..e00c544 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "1.9.5" +version = "1.9.6" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, { name="Alex Wolden", email="awolden@gmail.com" }, diff --git a/src/meshcore/commands.py b/src/meshcore/commands.py index 3c06008..f66bf9e 100644 --- a/src/meshcore/commands.py +++ b/src/meshcore/commands.py @@ -262,10 +262,10 @@ class CommandHandler: return await self.send(data, [EventType.MSG_SENT, EventType.ERROR]) async def send_logout(self, dst: DestinationType) -> Event: - dst_bytes = _validate_destination(dst) + dst_bytes = _validate_destination(dst, prefix_length=32) self.login_resp = asyncio.Future() data = b"\x1d" + dst_bytes - return await self.send(data, [EventType.MSG_SENT, EventType.ERROR]) + return await self.send(data, [EventType.OK, EventType.ERROR]) async def send_statusreq(self, dst: DestinationType) -> Event: dst_bytes = _validate_destination(dst, prefix_length=32)