mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Remove the create function for MdnsDiscoveryAgent because it can't throw IOException anymore
This commit is contained in:
parent
aaa73eb196
commit
bcf10cc0b2
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user