Skip to content

Commit

Permalink
Avoid crash in unmount if journal is null
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-stephenson committed Nov 17, 2021
1 parent 1d81c8e commit da32f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/recordings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ class Logs extends React.Component {
}

componentWillUnmount() {
this.journalCtl.stop();
if (this.journalCtl) {
this.journalCtl.stop();
}
this.setState({
serverTimeOffset: null,
cursor: null,
Expand Down

0 comments on commit da32f4f

Please sign in to comment.