Skip to content

Commit

Permalink
Merge pull request #347 from fatadel/fix-longpoll
Browse files Browse the repository at this point in the history
fix: fix longpoll client
  • Loading branch information
danielpeintner authored Oct 27, 2020
2 parents ea3e42e + a468b63 commit d420cfb
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 d420cfb

Please sign in to comment.