From 56e705b6de29005d56626ba37ea00b3ad450e617 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 Mar 2021 09:38:55 +0100 Subject: [PATCH] Only switch buffer on connect if there's no active buffer --- components/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index 81ae62f..6f07e8b 100644 --- a/components/app.js +++ b/components/app.js @@ -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) {