mirror of
https://github.com/danog/WarehouseServer.git
synced 2024-11-26 20:04:50 +01:00
Cleanup
This commit is contained in:
parent
89d87a2fd5
commit
bf4612a181
@ -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);
|
warehouse.checkout(input);
|
||||||
return warehouse.getWarehouse().getPayload();
|
return warehouse.getWarehouse().getPayload();
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized private String getDatabase() {
|
private String getDatabase() {
|
||||||
return warehouse.getWarehouse().getPayload();
|
return warehouse.getWarehouse().getPayload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,10 +52,5 @@ public class MultiServer {
|
|||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Logger.getLogger(MultiServer.class.getName()).log(Level.SEVERE, null, 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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user