Issues #9 fix

first test version for fix of #9

[Ticket: #9]
This commit is contained in:
Marko Oldenburg 2022-03-17 08:28:25 +01:00
parent 53c619ff1b
commit 2cf4007b05
2 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,2 @@
UPD 2022-03-13_11:13:55 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-13_11:13:52 54282 lib/FHEM/Devices/LGTV/LGTVWebOS.pm
UPD 2022-03-13_11:17:13 18968 FHEM/82_LGTV_WebOS.pm
UPD 2022-03-17_08:25:38 54313 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -736,7 +736,8 @@ sub Read {
$hash->{helper}->{lastResponse} =
int( ::gettimeofday() ); # Check Socket KeepAlive
$len = sysread( $hash->{CD}, $buf, 10240 );
$len = sysread( $hash->{CD}, $buf, 10240 )
if exists( $hash->{CD} );
if ( !defined($len) || !$len ) {