fix: Global symbol "$port" requires

This commit is contained in:
Marko Oldenburg 2023-11-16 19:44:12 +01:00
parent 813dd5ee34
commit 638cbba10b
2 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,2 @@
UPD 2023-11-15_19:19:41 19028 FHEM/82_LGTV_WebOS.pm
UPD 2023-11-15_19:19:45 55994 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
UPD 2023-11-16_19:43:35 55993 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -666,8 +666,9 @@ sub Open {
KeepAlive => 1,
Timeout => $timeout
)
or return ::Log3( $name, 4,
"LGTV_WebOS ($name) Couldn't connect to $host:$port" ); # open Socket
or
return ::Log3( $name, 4, "LGTV_WebOS ($name) Couldn't connect to $host" )
; # open Socket
$hash->{FD} = $socket->fileno();
$hash->{CD} = $socket; # sysread / close won't work on fileno