From 616b74a82098e2b3a7ef3cb4039a5f233dff03e3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 28 Nov 2022 02:06:39 -0500 Subject: [PATCH] *Wrap cache delete in try/catch --- src/modules/rpc/cache.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/rpc/cache.ts b/src/modules/rpc/cache.ts index 7261340..bd5218f 100644 --- a/src/modules/rpc/cache.ts +++ b/src/modules/rpc/cache.ts @@ -40,7 +40,9 @@ export class RPCCache extends EventEmitter { protocol: "lumeweb.rpccache", }); this._data.on("del", (key: string) => { - this.deleteItem(key); + try { + this.deleteItem(key); + } catch {} }); }