Commit f7b8d9b4 authored by 4Benj_'s avatar 4Benj_ Committed by GitHub
Browse files

Removed debug message and fixed NullPtrException (#434)

* Removed a debug message from Auth Handler changes

Kill me

* Also forgot to use the getter :/
parent a1026133
...@@ -309,7 +309,7 @@ public final class DispatchServer { ...@@ -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 { ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment