Don't check for closed sockets. If it talks like a duck, ect.

This commit is contained in:
Kristian S. Stangeland 2012-10-31 00:52:02 +01:00
parent ae08abe821
commit aa9616d6b0

View File

@ -289,11 +289,6 @@ public class PlayerInjectionHandler {
Socket socket = injector.getSocket();
SocketAddress address = socket != null ? socket.getRemoteSocketAddress() : null;
// Make sure the current player is not logged out
if (socket != null && socket.isClosed()) {
throw new PlayerLoggedOutException();
}
// Guard against NPE here too
PlayerInjector previous = address != null ? addressLookup.get(address) : null;