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