From 811384642227d79dc50f009e4cdc4adab7d5bd5c Mon Sep 17 00:00:00 2001 From: Casper Warden <216465704+casperwardensl@users.noreply.github.com> Date: Thu, 14 Dec 2017 02:25:05 +0000 Subject: [PATCH] Reset agent localID to 0 when new objectstore is created --- lib/classes/ObjectStoreFull.ts | 1 + lib/classes/ObjectStoreLite.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/classes/ObjectStoreFull.ts b/lib/classes/ObjectStoreFull.ts index 0ca484c..4f09a20 100644 --- a/lib/classes/ObjectStoreFull.ts +++ b/lib/classes/ObjectStoreFull.ts @@ -35,6 +35,7 @@ export class ObjectStoreFull implements IObjectStore constructor(circuit: Circuit, agent: Agent, clientEvents: ClientEvents, options: BotOptionFlags) { + this.agent.localID = 0; this.options = options; this.clientEvents = clientEvents; this.circuit = circuit; diff --git a/lib/classes/ObjectStoreLite.ts b/lib/classes/ObjectStoreLite.ts index e4e9a85..9499880 100644 --- a/lib/classes/ObjectStoreLite.ts +++ b/lib/classes/ObjectStoreLite.ts @@ -32,6 +32,7 @@ export class ObjectStoreLite implements IObjectStore constructor(circuit: Circuit, agent: Agent, clientEvents: ClientEvents, options: BotOptionFlags) { + this.agent.localID = 0; this.options = options; this.clientEvents = clientEvents; this.circuit = circuit;