Only switch buffer on connect if there's no active buffer
This commit is contained in:
parent
bf30038b41
commit
56e705b6de
1 changed files with 3 additions and 1 deletions
|
@ -474,8 +474,10 @@ export default class App extends Component {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.createBuffer(netID, SERVER_BUFFER);
|
this.createBuffer(netID, SERVER_BUFFER);
|
||||||
|
if (!this.state.activeBuffer) {
|
||||||
this.switchBuffer({ network: netID, name: SERVER_BUFFER });
|
this.switchBuffer({ network: netID, name: SERVER_BUFFER });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
disconnect(netID) {
|
disconnect(netID) {
|
||||||
if (!netID) {
|
if (!netID) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue