mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-23 00:36:41 +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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user