forked from CringeStudios/gamja
Fix buffer not removed in close()
This commit is contained in:
parent
ae914d4106
commit
3ece5f1ca5
@ -757,7 +757,7 @@ export default class App extends Component {
|
|||||||
this.switchBuffer({ name: SERVER_BUFFER });
|
this.switchBuffer({ name: SERVER_BUFFER });
|
||||||
this.setState((state) => {
|
this.setState((state) => {
|
||||||
var buffers = new Map(state.buffers);
|
var buffers = new Map(state.buffers);
|
||||||
buffers.delete(buf.name);
|
buffers.delete(buf.id);
|
||||||
return { buffers };
|
return { buffers };
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user