mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Fix weird double cancel crash. This might need more investigation later.
This commit is contained in:
parent
bd9c6834b7
commit
93bf28b87d
@ -117,8 +117,10 @@ public class MdnsDiscoveryAgent {
|
||||
// Stop if requested
|
||||
if (stop) {
|
||||
// There will be no further timer invocations now
|
||||
discoveryTimer.cancel();
|
||||
discoveryTimer = null;
|
||||
if (discoveryTimer != null) {
|
||||
discoveryTimer.cancel();
|
||||
discoveryTimer = null;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user