X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpConnection.java;h=2688d2181cc6d20cda4c278fb1b6fc3bc9fc7d94;hb=5cf64105e5bd8f1e679dcfe189671e30ac2a653c;hp=e2bf72a64d7f6e85e51c9bdda88398175edbaf9f;hpb=16f13bf1bb39de9af116ddfcbccf0d3d426490bc;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnection.java b/src/main/java/net/pterodactylus/fcp/FcpConnection.java index e2bf72a..2688d21 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnection.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnection.java @@ -68,7 +68,7 @@ public class FcpConnection implements Closeable { private FcpConnectionHandler connectionHandler; /** Incoming message statistics. */ - private Map incomingMessageStatistics = Collections.synchronizedMap(new HashMap()); + private static final Map incomingMessageStatistics = Collections.synchronizedMap(new HashMap()); /** * Creates a new FCP connection to the freenet node running on localhost, @@ -196,6 +196,7 @@ public class FcpConnection implements Closeable { * Closes the connection. If there is no connection to the node, this method * does nothing. */ + @Override public void close() { handleDisconnect(null); }