mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 15:27:18 +00:00
Fix a null pointer exception reported by a user
This commit is contained in:
1 parent
edb286f9af
commit
1cac7660b8
1 file changed
+4
-2
@@ -233,8 +233,10 @@ public class ComputerManagerService extends Service {
|
||||
|
||||
@Override
|
||||
public boolean onUnbind(Intent intent) {
|
||||
// Stop mDNS autodiscovery
|
||||
discoveryBinder.stopDiscovery();
|
||||
if (discoveryBinder != null) {
|
||||
// Stop mDNS autodiscovery
|
||||
discoveryBinder.stopDiscovery();
|
||||
}
|
||||
|
||||
// Stop polling
|
||||
pollingActive = false;
|
||||
|
||||
Reference in new issue
Block a user