ServiceInfo si = (ServiceInfo) iter.next();
jmdns.unregisterService(si);
}
// Close it down async since this could block for a while.
final JmDNS closeTarget = jmdns;
Thread thread = new Thread() {
public void run() {
closeTarget.close();
}
};
thread.setDaemon(true);
thread.start();