temporary (hopefully) change to make tests work
@@ -809,11 +809,14 @@ private void processNewClient(NetClient client) {
try {
Set blacklistedIDs = new Gson().fromJson(Files.newBufferedReader(blackListPath), Set.class);
System.out.println("BLIDS: " + blacklistedIDs);
+ // TODO: change the unit test NetworkOwnerShipTest to make this check unnecessary
+ if (blacklistedIDs != null) {
if (blacklistedIDs.contains(client.getId())) {
System.out.println("ID: " + client.getId());
forceDisconnect(client);
return;
}
+ }
System.out.println("ID: " + client.getId());
} catch (IOException e) {
e.printStackTrace();
