From ad78615d47234c4396f79dafe3fde4c7072cce5c Mon Sep 17 00:00:00 2001 From: Pranomvignesh Date: Fri, 16 Jul 2021 13:57:20 +0530 Subject: [PATCH] fix(workerManager.js) : Added a check for the existence of the worker before calling withSyncedResources --- src/workerManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/workerManager.ts b/src/workerManager.ts index 2c2d23bb..4c7716a8 100644 --- a/src/workerManager.ts +++ b/src/workerManager.ts @@ -80,7 +80,9 @@ export class WorkerManager { _client = client; }) .then((_) => { - return this._worker.withSyncedResources(resources); + if (this._worker) { + return this._worker.withSyncedResources(resources); + } }) .then((_) => _client); }