insert a condition tocall of keppAlive Fn
This commit is contained in:
parent
b4b5828928
commit
4a604c3554
@ -394,7 +394,9 @@ sub LGTV_WebOS_TimerStatusRequest {
|
|||||||
InternalTimer( gettimeofday() + 10, "LGTV_WebOS_TimerStatusRequest",
|
InternalTimer( gettimeofday() + 10, "LGTV_WebOS_TimerStatusRequest",
|
||||||
$hash );
|
$hash );
|
||||||
|
|
||||||
LGTV_WebOS_SocketKeepAlive($hash); # Check Socket KeepAlive
|
LGTV_WebOS_SocketKeepAlive($hash)
|
||||||
|
if ( AttrVal( $name, 'keepAliveCheckTime', 0 ) > 0 )
|
||||||
|
; # Check Socket KeepAlive
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -713,7 +715,7 @@ sub LGTV_WebOS_SocketKeepAlive {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
int( gettimeofday() ) - int( $hash->{helper}->{lastResponse} ) >
|
int( gettimeofday() ) - int( $hash->{helper}->{lastResponse} ) >
|
||||||
AttrVal( $name, 'keepAliveCheckTime', 10 ) )
|
AttrVal( $name, 'keepAliveCheckTime', 0 ) )
|
||||||
{
|
{
|
||||||
LGTV_WebOS_SocketClosePresenceAbsent( $hash, 'absent' );
|
LGTV_WebOS_SocketClosePresenceAbsent( $hash, 'absent' );
|
||||||
Log3( $name, 3,
|
Log3( $name, 3,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user