mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 12:56:40 +00:00
Fix Daemon Error
Reflection issue when initializing the daemon; trying to call a constructor with one argument using two arguments. Removed an unused constructor.
This commit is contained in:
@ -137,7 +137,7 @@ public class HTTPDaemon extends FreedomService
|
||||
|
||||
private void module(String name, Class<? extends HTTPDModule> clazz, boolean async)
|
||||
{
|
||||
modules.put(name, ModuleExecutable.forClass(plugin, clazz, async));
|
||||
modules.put(name, ModuleExecutable.forClass(clazz, async));
|
||||
}
|
||||
|
||||
private class HTTPD extends NanoHTTPD
|
||||
@ -146,12 +146,7 @@ public class HTTPDaemon extends FreedomService
|
||||
{
|
||||
super(port);
|
||||
}
|
||||
|
||||
private HTTPD(String hostname, int port)
|
||||
{
|
||||
super(hostname, port);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Response serve(HTTPSession session)
|
||||
{
|
||||
|
Reference in New Issue
Block a user