mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Fix crash on shortcut launch if PC has no known MAC address
This commit is contained in:
@@ -83,7 +83,7 @@ public class ShortcutTrampoline extends Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Try to wake the target PC if it's offline (up to some retry limit)
|
// Try to wake the target PC if it's offline (up to some retry limit)
|
||||||
if (details.state == ComputerDetails.State.OFFLINE && --wakeHostTries >= 0) {
|
if (details.state == ComputerDetails.State.OFFLINE && details.macAddress != null && --wakeHostTries >= 0) {
|
||||||
try {
|
try {
|
||||||
// Make a best effort attempt to wake the target PC
|
// Make a best effort attempt to wake the target PC
|
||||||
WakeOnLanSender.sendWolPacket(computer);
|
WakeOnLanSender.sendWolPacket(computer);
|
||||||
|
|||||||
Reference in New Issue
Block a user