From 2cf4007b056d84764d389c28dba142d188039493 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 17 Mar 2022 08:28:25 +0100 Subject: [PATCH] Issues #9 fix first test version for fix of #9 [Ticket: #9] --- controls_LGTV_WebOS.txt | 4 ++-- lib/FHEM/Devices/LGTV/LGTVWebOS.pm | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/controls_LGTV_WebOS.txt b/controls_LGTV_WebOS.txt index 3163361..566adea 100644 --- a/controls_LGTV_WebOS.txt +++ b/controls_LGTV_WebOS.txt @@ -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 diff --git a/lib/FHEM/Devices/LGTV/LGTVWebOS.pm b/lib/FHEM/Devices/LGTV/LGTVWebOS.pm index e39e970..a79b8f2 100644 --- a/lib/FHEM/Devices/LGTV/LGTVWebOS.pm +++ b/lib/FHEM/Devices/LGTV/LGTVWebOS.pm @@ -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 ) {