Archiviert
13
0

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

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-10-31 00:52:02 +01:00
Ursprung ae08abe821
Commit aa9616d6b0

Datei anzeigen

@ -289,11 +289,6 @@ public class PlayerInjectionHandler {
Socket socket = injector.getSocket(); Socket socket = injector.getSocket();
SocketAddress address = socket != null ? socket.getRemoteSocketAddress() : null; 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 // Guard against NPE here too
PlayerInjector previous = address != null ? addressLookup.get(address) : null; PlayerInjector previous = address != null ? addressLookup.get(address) : null;