mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
OWX_ASYNC: reset number of timeouts after disconnect
git-svn-id: https://svn.fhem.de/fhem/trunk@6300 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d73ee3356
commit
43c8b0ecc5
@ -127,7 +127,7 @@ my %attrs = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
#-- some globals needed for the 1-Wire module
|
#-- some globals needed for the 1-Wire module
|
||||||
$owx_async_version=5.10;
|
$owx_async_version=5.11;
|
||||||
#-- Debugging 0,1,2,3
|
#-- Debugging 0,1,2,3
|
||||||
$owx_async_debug=0;
|
$owx_async_debug=0;
|
||||||
|
|
||||||
@ -1064,6 +1064,7 @@ sub OWX_ASYNC_RunTasks($) {
|
|||||||
if ($master->{TIMEOUTS} > AttrVal($master->{NAME},"maxtimeouts",5)) {
|
if ($master->{TIMEOUTS} > AttrVal($master->{NAME},"maxtimeouts",5)) {
|
||||||
Log3 ($master->{NAME},3,"OWX_ASYNC_RunTasks: $master->{NAME} maximum number of timeouts exceedet ($master->{TIMEOUTS}), trying to reconnect");
|
Log3 ($master->{NAME},3,"OWX_ASYNC_RunTasks: $master->{NAME} maximum number of timeouts exceedet ($master->{TIMEOUTS}), trying to reconnect");
|
||||||
OWX_ASYNC_Disconnect($master);
|
OWX_ASYNC_Disconnect($master);
|
||||||
|
$master->{TIMEOUTS} = 0;
|
||||||
}
|
}
|
||||||
next;
|
next;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user