Only switch buffer on connect if there's no active buffer

This commit is contained in:
Simon Ser committed 2021-03-09 09:38:55 +01:00
1 parent bf30038b41
commit 56e705b6de
1 file changed
+3 -1
+3 -1
View File
@@ -474,7 +474,9 @@ export default class App extends Component {
});
this.createBuffer(netID, SERVER_BUFFER);
this.switchBuffer({ network: netID, name: SERVER_BUFFER });
if (!this.state.activeBuffer) {
this.switchBuffer({ network: netID, name: SERVER_BUFFER });
}
}
disconnect(netID) {