Fixed issue with order of construction

This commit is contained in:
Tristan B. Kildaire 2020-07-27 14:14:30 +02:00
parent c23214b186
commit 5ea1ac2ba5
2 changed files with 4 additions and 3 deletions

View File

@ -11,11 +11,12 @@ public abstract class ButterflyListener : Thread
private JSONValue config;
private string domain;
this(string listenerName, JSONValue config)
this(string listenerName, string domain, JSONValue config)
{
super(&run);
this.listenerName = listenerName;
this.config = config;
this.domain = domain;
}
public abstract void run()

View File

@ -10,9 +10,9 @@ public class IPv4Listener : ButterflyListener
private Socket serverSocket;
this(string name, JSONValue config)
this(string name, string domain, JSONValue config)
{
super(name, config);
super(name, domain, config);
Address bindAddress;
/**