From f93862363de637c96ea1648def3ae1c8105dac3b Mon Sep 17 00:00:00 2001 From: heapwolf Date: Thu, 8 Aug 2024 17:18:29 +0200 Subject: [PATCH] chore(api): update protocol --- api/latica/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/latica/index.js b/api/latica/index.js index 8c4fff8f1b..ad1b04be9e 100644 --- a/api/latica/index.js +++ b/api/latica/index.js @@ -567,7 +567,7 @@ export class Peer { await this.mcast(packet) this._onDebug(`-> RESEND (packetId=${packetId})`) - if (this.onState) this.onState(this.getState()) + if (this.onState) this.onState() } } @@ -946,7 +946,7 @@ export class Peer { }) this._onDebug(`-> JOIN (clusterId=${cid.slice(0, 6)}, subclusterId=${scid.slice(0, 6)}, clock=${packet.clock}/${this.clock})`) - if (this.onState) this.onState(this.getState()) + if (this.onState) this.onState() this.mcast(packet) this.gate.set(packet.packetId.toString('hex'), 1)