mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-23 08:46:40 +00:00
Fix weird double cancel crash. This might need more investigation later.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user