2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +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:
erwin 2023-04-07 20:36:47 +00:00
parent 1adcf9e5a3
commit 1ec90ff16a

View File

@ -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;
}