From a468b63fcfc95453654a89e85af6be76dc581d33 Mon Sep 17 00:00:00 2001 From: fatadel Date: Tue, 27 Oct 2020 10:34:06 +0100 Subject: [PATCH] fix: fix longpoll client Signed-off-by: fatadel --- packages/binding-http/src/subscription-protocols.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-http/src/subscription-protocols.ts b/packages/binding-http/src/subscription-protocols.ts index 708f3f4f7..4889099e1 100644 --- a/packages/binding-http/src/subscription-protocols.ts +++ b/packages/binding-http/src/subscription-protocols.ts @@ -49,7 +49,7 @@ export class LongPollingSubscription implements InternalSubscription{ console.debug("[binding-http]", `HttpClient received headers: ${JSON.stringify(result.headers.raw())}`); console.debug("[binding-http]", `HttpClient received Content-Type: ${result.headers.get("content-type")}`); - if (!closed) { + if (!this.closed) { next({ type: result.headers.get("content-type"), body: buffer }) polling() } {