outposts: fix outpost state showing last time without version

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-05 20:49:13 +02:00
parent 701c140cfd
commit ac9cac302c
1 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ class OutpostConsumer(AuthJsonConsumer):
state.version = msg.args.get("version", None)
elif msg.instruction == WebsocketMessageInstruction.ACK:
return
if state.version:
state.save(timeout=OUTPOST_HELLO_INTERVAL * 1.5)
response = WebsocketMessage(instruction=WebsocketMessageInstruction.ACK)