From fe43afa4817184ec3b77972efa72e3b049fecb80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serkan=20=C3=96zel?= Date: Fri, 30 Sep 2022 23:55:17 +0300 Subject: [PATCH] Fix leak in ReliableTopicListenerRunner.next (#1377) --- src/proxy/topic/ReliableTopicListenerRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/topic/ReliableTopicListenerRunner.ts b/src/proxy/topic/ReliableTopicListenerRunner.ts index 8ca8210bb..76e8351bb 100644 --- a/src/proxy/topic/ReliableTopicListenerRunner.ts +++ b/src/proxy/topic/ReliableTopicListenerRunner.ts @@ -90,7 +90,7 @@ export class ReliableTopicListenerRunner { }) .catch((err) => { if (this.handleInternalError(err)) { - this.next(); + setImmediate(this.next.bind(this)); } else { this.proxy.removeMessageListener(this.listenerId); }