Removed debug message and fixed NullPtrException (#434)

* Removed a debug message from Auth Handler changes

Kill me

* Also forgot to use the getter :/
This commit is contained in:
4Benj_ 2022-05-02 18:47:29 +08:00 committed by GitHub
parent d912b59d93
commit 1df5574b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,7 @@ public final class DispatchServer {
} }
Grasscutter.getLogger().info(String.format("[Dispatch] Client %s is trying to log in", req.ip())); Grasscutter.getLogger().info(String.format("[Dispatch] Client %s is trying to log in", req.ip()));
res.send(authHandler.handleGameLogin(req, requestData)); res.send(this.getAuthHandler().handleGameLogin(req, requestData));
}); });
// Login via token // Login via token
@ -491,8 +491,6 @@ public final class DispatchServer {
if(authHandler == null) { if(authHandler == null) {
return new DefaultAuthenticationHandler(); return new DefaultAuthenticationHandler();
} }
Grasscutter.getLogger().info(authHandler.getClass().getName());
return authHandler; return authHandler;
} }