insert a condition tocall of keppAlive Fn

This commit is contained in:
Marko Oldenburg 2022-01-05 18:23:32 +01:00
parent b4b5828928
commit 4a604c3554

View File

@ -394,7 +394,9 @@ sub LGTV_WebOS_TimerStatusRequest {
InternalTimer( gettimeofday() + 10, "LGTV_WebOS_TimerStatusRequest",
$hash );
LGTV_WebOS_SocketKeepAlive($hash); # Check Socket KeepAlive
LGTV_WebOS_SocketKeepAlive($hash)
if ( AttrVal( $name, 'keepAliveCheckTime', 0 ) > 0 )
; # Check Socket KeepAlive
return;
}
@ -713,7 +715,7 @@ sub LGTV_WebOS_SocketKeepAlive {
if (
int( gettimeofday() ) - int( $hash->{helper}->{lastResponse} ) >
AttrVal( $name, 'keepAliveCheckTime', 10 ) )
AttrVal( $name, 'keepAliveCheckTime', 0 ) )
{
LGTV_WebOS_SocketClosePresenceAbsent( $hash, 'absent' );
Log3( $name, 3,