From fc40b3e732baab5f11f4a614ba7bf5353095f798 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 19 Dec 2016 21:19:02 +0100 Subject: Lower connection timeout in check_connection() --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index db4fae557..de41acb2d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2234,7 +2234,7 @@ bool wallet2::check_connection(uint32_t *version) u.port = m_testnet ? config::testnet::RPC_DEFAULT_PORT : config::RPC_DEFAULT_PORT; } - if (!m_http_client.connect(u.host, std::to_string(u.port), WALLET_RCP_CONNECTION_TIMEOUT)) + if (!m_http_client.connect(u.host, std::to_string(u.port), 10000)) return false; } -- cgit v1.2.3