From 49dcbd3bd34557eab7696807c9403559efacc5c2 Mon Sep 17 00:00:00 2001 From: IKatsuba Date: Thu, 26 Nov 2020 09:59:47 +0300 Subject: [PATCH] chore: fix a small bug --- projects/workers/src/worker/pipes/worker.pipe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/workers/src/worker/pipes/worker.pipe.ts b/projects/workers/src/worker/pipes/worker.pipe.ts index f42517d..112cea9 100644 --- a/projects/workers/src/worker/pipes/worker.pipe.ts +++ b/projects/workers/src/worker/pipes/worker.pipe.ts @@ -16,10 +16,10 @@ export class WorkerPipe implements PipeTransform, OnDestroy { if (this.fn !== fn) { this.terminate(); this.initNewWorker(fn); - - this.worker.postMessage(value); } + this.worker.postMessage(value); + return this.observer; }