mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Fix a bug where we'd add a null entry to the computer list
This commit is contained in:
parent
e8fd1f262a
commit
2918039b6f
@ -410,8 +410,8 @@ public class ComputerManagerService extends Service {
|
|||||||
dbManager.updateComputer(details);
|
dbManager.updateComputer(details);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update anyone listening
|
// Don't call the listener if this is a failed lookup of a new PC
|
||||||
if (listener != null) {
|
if ((!newPc || details.state == ComputerDetails.State.ONLINE) && listener != null) {
|
||||||
listener.notifyComputerUpdated(details);
|
listener.notifyComputerUpdated(details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user