diff --git a/src/warehouseserver/ConnectionRunnable.java b/src/warehouseserver/ConnectionRunnable.java index e5ee22a..c6d2a4e 100644 --- a/src/warehouseserver/ConnectionRunnable.java +++ b/src/warehouseserver/ConnectionRunnable.java @@ -108,12 +108,12 @@ public class ConnectionRunnable implements Runnable { } - synchronized private String updateDatabase(String input) throws ClientException, IOException { + private String updateDatabase(String input) throws ClientException, IOException { warehouse.checkout(input); return warehouse.getWarehouse().getPayload(); } - synchronized private String getDatabase() { + private String getDatabase() { return warehouse.getWarehouse().getPayload(); } diff --git a/src/warehouseserver/MultiServer.java b/src/warehouseserver/MultiServer.java index dfcc9c0..a0b23e1 100644 --- a/src/warehouseserver/MultiServer.java +++ b/src/warehouseserver/MultiServer.java @@ -52,10 +52,5 @@ public class MultiServer { } catch (IOException ex) { Logger.getLogger(MultiServer.class.getName()).log(Level.SEVERE, null, ex); } - try { - warehouse.close(); - } catch (IOException ex) { - Logger.getLogger(MultiServer.class.getName()).log(Level.SEVERE, null, ex); - } } }