Skip to content

Commit f01d600

Browse files
bugfix(@nestjs/microservices) set flag to true
1 parent 945eff5 commit f01d600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/microservices/client/client-redis.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ClientRedis extends ClientProxy {
2626
protected pubClient: RedisClient;
2727
protected subClient: RedisClient;
2828
protected connection: Promise<any>;
29-
private readonly isExplicitlyTerminated = false;
29+
protected isExplicitlyTerminated = false;
3030

3131
constructor(protected readonly options: ClientOptions['options']) {
3232
super();
@@ -48,6 +48,7 @@ export class ClientRedis extends ClientProxy {
4848
this.pubClient && this.pubClient.quit();
4949
this.subClient && this.subClient.quit();
5050
this.pubClient = this.subClient = null;
51+
this.isExplicitlyTerminated = true;
5152
}
5253

5354
public connect(): Promise<any> {

0 commit comments

Comments
 (0)