Skip to content

Commit 3aa065b

Browse files
author
Artem
committed
#RI-5434 close parent profiler client after monitor command succeed
1 parent 706ae4e commit 3aa065b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redisinsight/api/src/modules/redis/client/ioredis/ioredis.client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ export abstract class IoredisClient extends RedisClient {
142142
*/
143143
async monitor(): Promise<any> {
144144
if (this.client instanceof Redis) {
145-
return this.client.monitor();
145+
const monitorClient = this.client.monitor();
146+
this.client.disconnect();
147+
return monitorClient;
146148
}
147149

148150
return undefined;

0 commit comments

Comments
 (0)