From aaea1a9d8779ff00b6ddf90c758c224b6ddfa3b0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 16 Nov 2022 21:29:39 +0100 Subject: [PATCH] Prevent application from automatically reloading server --- app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java b/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java index f0fc22c..decfd64 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/ExBoxFrame.java @@ -186,10 +186,6 @@ public class ExBoxFrame extends JFrame implements ActionListener, ItemListener { } private void execute(String args) throws Exception { - if (lastServer != null) { - command = ServerFactory.createServer(lastServer); - } - if (!arguments.getText().equals(history.getItemAt(0)) && !arguments.getText().equals(history.getSelectedItem())) { history.insertItemAt(arguments.getText(), 0);