mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-30 11:09:00 +00:00
minor
This commit is contained in:
parent
d3cf372887
commit
c49f2ed5f1
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:grpc/grpc.dart';
|
||||
|
@ -43,7 +42,7 @@ class CwMweb {
|
|||
} catch (e) {
|
||||
print("Attempt $i failed: $e");
|
||||
await stop(); // call stop so we create a new instance before retrying
|
||||
await Future.delayed(const Duration(seconds: 2)); // wait before retrying
|
||||
await Future.delayed(const Duration(seconds: 4)); // wait before retrying
|
||||
}
|
||||
}
|
||||
throw Exception("Failed to connect after $maxRetries attempts");
|
||||
|
|
Loading…
Reference in a new issue