Removed data length
This commit is contained in:
@@ -104,9 +104,8 @@ async def handle(ws, path):
|
|||||||
await send_error(b"Flight not found")
|
await send_error(b"Flight not found")
|
||||||
else:
|
else:
|
||||||
data = flights[uuid].get_all()
|
data = flights[uuid].get_all()
|
||||||
await cli.ws.send(struct.pack(b"<BI%ds" % len(data),
|
await cli.ws.send(struct.pack(b"<B%ds" % len(data),
|
||||||
3, # packet_id
|
3, # packet_id
|
||||||
len(data),
|
|
||||||
data
|
data
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user