mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
increase ping timeout
This commit is contained in:
parent
236e04f849
commit
c9269fffef
1 changed files with 2 additions and 2 deletions
|
@ -275,9 +275,9 @@ class ElectrumX {
|
|||
final response = await request(
|
||||
requestID: requestID,
|
||||
command: 'server.ping',
|
||||
connectionTimeout: const Duration(seconds: 1),
|
||||
connectionTimeout: const Duration(seconds: 2),
|
||||
retries: retryCount,
|
||||
).timeout(const Duration(seconds: 1)) as Map<String, dynamic>;
|
||||
).timeout(const Duration(seconds: 2)) as Map<String, dynamic>;
|
||||
return response.keys.contains("result") && response["result"] == null;
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
|
|
Loading…
Reference in a new issue