mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 23:06:05 +00:00
00_KNXIO.pm: rework logging,limit timeouts (Forum Thread #127792)
git-svn-id: https://svn.fhem.de/fhem/trunk@27412 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
10cac061dd
commit
b736f69244
@ -1102,11 +1102,11 @@ sub KNXIO_keepAliveTO {
|
||||
my $name = $hash->{NAME};
|
||||
my $cntrTO = $hash->{KNXIOhelper}->{CNTRTO};
|
||||
|
||||
return KNXIO_disconnect($hash) if ($cntrTO >= 2); # nr of timeouts exceeded
|
||||
|
||||
$cntrTO++;
|
||||
KNXIO_Log ($name, 3, qq{timeout - retry $cntrTO});
|
||||
|
||||
return KNXIO_keepAlive($hash,$cntrTO) if ($cntrTO < 3);
|
||||
KNXIO_disconnect($hash); # nr of timeouts exceeded
|
||||
KNXIO_keepAlive($hash,$cntrTO);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user