mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
some issues with logout
This commit is contained in:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "meshcore"
|
name = "meshcore"
|
||||||
version = "1.9.5"
|
version = "1.9.6"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
||||||
{ name="Alex Wolden", email="awolden@gmail.com" },
|
{ name="Alex Wolden", email="awolden@gmail.com" },
|
||||||
|
|||||||
@@ -262,10 +262,10 @@ class CommandHandler:
|
|||||||
return await self.send(data, [EventType.MSG_SENT, EventType.ERROR])
|
return await self.send(data, [EventType.MSG_SENT, EventType.ERROR])
|
||||||
|
|
||||||
async def send_logout(self, dst: DestinationType) -> Event:
|
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()
|
self.login_resp = asyncio.Future()
|
||||||
data = b"\x1d" + dst_bytes
|
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:
|
async def send_statusreq(self, dst: DestinationType) -> Event:
|
||||||
dst_bytes = _validate_destination(dst, prefix_length=32)
|
dst_bytes = _validate_destination(dst, prefix_length=32)
|
||||||
|
|||||||
Reference in New Issue
Block a user