Skip to content

Commit

Permalink
fix: Cleanup bots stream (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
yivlad authored Feb 22, 2022
1 parent a8b8c24 commit 2051d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/console-app/src/components/BotLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const BotLogs = ({
}, () => {
setLogs(logs => [...logs, 'Stream ended.']);
});
() => stream.close();
return () => stream.close();
}, []);

return (
Expand Down

0 comments on commit 2051d2f

Please sign in to comment.