Skip to content

Commit 0ea1063

Browse files
author
Artem
committed
possible error fix
1 parent 539a5c4 commit 0ea1063

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redisinsight/api/src/modules/profiler/providers/log-file.provider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export class LogFileProvider implements OnModuleDestroy {
4040
const logFile = await this.get(id);
4141
const stream = await logFile.getReadStream();
4242

43-
// stream.once('end', () => {
44-
// stream.destroy();
45-
// logFile.destroy();
46-
// });
43+
stream.once('end', () => {
44+
stream.destroy();
45+
// logFile.destroy();
46+
});
4747

4848
return { stream, filename: logFile.getFilename() };
4949
}

0 commit comments

Comments
 (0)