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); }