mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-17 05:49:58 +00:00
Remove the create function for MdnsDiscoveryAgent because it can't throw IOException anymore
This commit is contained in:
@@ -127,19 +127,12 @@ public class MdnsDiscoveryAgent {
|
|||||||
return new MdnsComputer(name, uuid, address);
|
return new MdnsComputer(name, uuid, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
private MdnsDiscoveryAgent(MdnsDiscoveryListener listener) {
|
public MdnsDiscoveryAgent(MdnsDiscoveryListener listener) {
|
||||||
computers = new HashMap<InetAddress, MdnsComputer>();
|
computers = new HashMap<InetAddress, MdnsComputer>();
|
||||||
pendingResolution = new HashSet<String>();
|
pendingResolution = new HashSet<String>();
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MdnsDiscoveryAgent createDiscoveryAgent(MdnsDiscoveryListener listener) throws IOException {
|
|
||||||
MdnsDiscoveryAgent agent = new MdnsDiscoveryAgent(listener);
|
|
||||||
|
|
||||||
|
|
||||||
return agent;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void startDiscovery(final int discoveryIntervalMs) {
|
public void startDiscovery(final int discoveryIntervalMs) {
|
||||||
discoveryTimer = new Timer();
|
discoveryTimer = new Timer();
|
||||||
discoveryTimer.schedule(new TimerTask() {
|
discoveryTimer.schedule(new TimerTask() {
|
||||||
|
|||||||
Reference in New Issue
Block a user