mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +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(
|
final response = await request(
|
||||||
requestID: requestID,
|
requestID: requestID,
|
||||||
command: 'server.ping',
|
command: 'server.ping',
|
||||||
connectionTimeout: const Duration(seconds: 1),
|
connectionTimeout: const Duration(seconds: 2),
|
||||||
retries: retryCount,
|
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;
|
return response.keys.contains("result") && response["result"] == null;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
rethrow;
|
rethrow;
|
||||||
|
|
Loading…
Reference in a new issue