Reset buffers on disconnect
This commit is contained in:
parent
d86c4a0566
commit
61b0425128
1 changed files with 5 additions and 1 deletions
|
@ -122,7 +122,11 @@ export default class App extends Component {
|
|||
});
|
||||
|
||||
this.client.addEventListener("close", () => {
|
||||
this.setState({ status: DISCONNECTED });
|
||||
this.setState({
|
||||
status: DISCONNECTED,
|
||||
buffers: new Map(),
|
||||
activeBuffer: null,
|
||||
});
|
||||
});
|
||||
|
||||
this.client.addEventListener("message", (event) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue