Skip to content

Commit 2f62595

Browse files
committed
changed/fixed: don't call PowerOnDevices() if no devices to wake have been configured. issue Pulse-Eight#97
1 parent cc167e6 commit 2f62595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LibCecTray/controller/actions/ConnectToDevice.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public override void Process()
7878

7979
SendEvent(UpdateEventType.ProgressBar, 20);
8080
SendEvent(UpdateEventType.StatusText, Resources.action_sending_power_on);
81-
_lib.PowerOnDevices(CecLogicalAddress.Broadcast);
81+
if (_config.WakeDevices.Addresses.Length > 0)
82+
_lib.PowerOnDevices(CecLogicalAddress.Broadcast);
8283

8384
if (_lib.IsActiveDevice(CecLogicalAddress.Tv))
8485
{

0 commit comments

Comments
 (0)