automationdev300m84: #i112935 - The fix is that i check for iRetries being greater equal MAX_RETRIES.

This is against my understanding of the for-next loops internal workings but solves the problem.
This commit is contained in:
Joerg Skottke [jsk] 2010-07-08 09:41:33 +02:00
parent 050bb9f5e5
commit 3999cb339a

View file

@ -1108,7 +1108,7 @@ function hUseAsyncSlot( cSlot as string ) as integer
iTime = iRetries * DELAY
' Timeout is -1
if ( iRetries = MAX_RETRIES ) then iTime = RC_TIMEOUT
if ( iRetries >= MAX_RETRIES ) then iTime = RC_TIMEOUT
if ( GVERBOSE ) then printlog( CFN & "Exit with rc=" & iTime )
hUseAsyncSlot() = iTime