mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +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
|
// Stop if requested
|
||||||
if (stop) {
|
if (stop) {
|
||||||
// There will be no further timer invocations now
|
// There will be no further timer invocations now
|
||||||
discoveryTimer.cancel();
|
if (discoveryTimer != null) {
|
||||||
discoveryTimer = null;
|
discoveryTimer.cancel();
|
||||||
|
discoveryTimer = null;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user