mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-05 02:10:14 +01:00
Don't check for closed sockets. If it talks like a duck, ect.
This commit is contained in:
parent
ae08abe821
commit
aa9616d6b0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user