mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Only replace the MAC address if the existing one is non-null
This commit is contained in:
parent
f2b8461bb9
commit
95ea88e932
@ -497,7 +497,7 @@ public class ComputerManagerService extends Service {
|
|||||||
details.update(polledDetails);
|
details.update(polledDetails);
|
||||||
|
|
||||||
// If the new MAC address is empty, restore the old one (workaround for GFE bug)
|
// If the new MAC address is empty, restore the old one (workaround for GFE bug)
|
||||||
if (details.macAddress.equals("00:00:00:00:00:00")) {
|
if (details.macAddress.equals("00:00:00:00:00:00") && savedMacAddress != null) {
|
||||||
LimeLog.info("MAC address was empty; using existing value: "+savedMacAddress);
|
LimeLog.info("MAC address was empty; using existing value: "+savedMacAddress);
|
||||||
details.macAddress = savedMacAddress;
|
details.macAddress = savedMacAddress;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user