Commit dfd0bbdf authored by Matt Tucker's avatar Matt Tucker Committed by matt

Initialize JMDNS on a thread, possible fix to startup failing when not on the network.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1254 b35dd754-fafc-0310-a699-88a17e54d16e
parent 93ce3226
......@@ -42,12 +42,7 @@ public class MulticastDNSService extends BasicModule {
}
public void initialize(XMPPServer server) {
try {
jmdns = new JmDNS();
}
catch (IOException ioe) {
Log.error(ioe);
}
}
public void start() throws IllegalStateException {
......@@ -64,6 +59,9 @@ public class MulticastDNSService extends BasicModule {
}
}
try {
if (jmdns == null) {
jmdns = new JmDNS();
}
if (portNum != -1) {
String serverName = AdminConsole.getAppName();
serviceInfo = new ServiceInfo("_xmpp-client._tcp.local.",
......
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