fix exception

This commit is contained in:
Christien Rioux 2024-02-28 22:41:44 -05:00
parent d00722433d
commit 56d8f81cf2

View File

@ -653,7 +653,7 @@ class DHTRecordPool with TableDBBacked<DHTRecordPoolAllocations> {
// Process all watch changes
// If any watched did not success, back off the attempts to
// update the watches for a bit
final allSuccess =
final allSuccess = unord.isEmpty ||
(await unord.map((f) => f()).wait).reduce((a, b) => a && b);
if (!allSuccess) {
_watchBackoffTimer *= watchBackoffMultiplier;