This commit is contained in:
Daniil Gentili 2017-11-06 15:21:02 +03:00
parent 89d87a2fd5
commit bf4612a181
2 changed files with 2 additions and 7 deletions

View File

@ -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();
}

View File

@ -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);
}
}
}