10_CUL_HM: minor bug

git-svn-id: https://svn.fhem.de/fhem/trunk@7105 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2014-11-30 19:03:20 +00:00
parent ffbf40f407
commit f73ae0e00b

View File

@@ -5129,7 +5129,8 @@ sub CUL_HM_sndIfOpen($) {
||(defined $ioHash->{XmitOpen} && $ioHash->{XmitOpen} != 1)
# ||$modules{CUL_HM}{prot}{rspPend}>=$maxPendCmds
){#still no send allowed
if ($modules{CUL_HM}{$io}{tmrStart} < gettimeofday() - $modules{CUL_HM}{hmIoMaxDly}){
if ( $modules{CUL_HM}{$io}{tmrStart} &&
($modules{CUL_HM}{$io}{tmrStart} < gettimeofday() - $modules{CUL_HM}{hmIoMaxDly})){
# we need to clean up - this is way to long Stop delay
if ($modules{CUL_HM}{$io}{pendDev}) {
while(@{$modules{CUL_HM}{$io}{pendDev}}){