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