mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 02:18:31 -07:00
Fix availability sleep duration. #6281
This commit is contained in:
parent
05deca6261
commit
fe24391de8
@ -73,7 +73,7 @@ class AvailabilityNew extends ExtensionTS {
|
||||
logger.error(`Failed to ping '${re.name}' (attempt ${i + 1}, ${error.message})`);
|
||||
// Try again in 3 seconds.
|
||||
const lastAttempt = i - 1 === attempts;
|
||||
!lastAttempt && await sleep(seconds(3));
|
||||
!lastAttempt && await sleep(3);
|
||||
}
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ class AvailabilityNew extends ExtensionTS {
|
||||
this.removeFromPingQueue(re);
|
||||
|
||||
// Sleep 2 seconds before executing next ping
|
||||
await sleep(seconds(2));
|
||||
await sleep(2);
|
||||
this.pingQueueExecuting = false;
|
||||
this.pingQueueExecuteNext();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user