Skip to content

Commit

Permalink
fix: fix longpoll client
Browse files Browse the repository at this point in the history
Signed-off-by: fatadel <[email protected]>
  • Loading branch information
fatadel committed Oct 27, 2020
1 parent ea3e42e commit a468b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/binding-http/src/subscription-protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
} {
Expand Down

0 comments on commit a468b63

Please sign in to comment.