From 58d93394422feb90eb690393d4c0e0fe1985016c Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Fri, 9 Mar 2018 16:53:37 +0300 Subject: [PATCH] fix: undefined reference on Android build --- src/supernode/TxPool.cpp | 1 + src/supernode/TxPool.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/supernode/TxPool.cpp b/src/supernode/TxPool.cpp index f5636dfe0..13255083e 100644 --- a/src/supernode/TxPool.cpp +++ b/src/supernode/TxPool.cpp @@ -39,6 +39,7 @@ using namespace std; namespace supernode { TxPool::TxPool(const std::string &daemon_addr, const std::string &daemon_login, const std::string &daemon_pass) + : m_rpc_timeout(std::chrono::seconds(30)) { bool result = false; diff --git a/src/supernode/TxPool.h b/src/supernode/TxPool.h index 1e4b966d7..f32f695a9 100644 --- a/src/supernode/TxPool.h +++ b/src/supernode/TxPool.h @@ -56,7 +56,7 @@ class TxPool private: epee::net_utils::http::http_simple_client m_http_client; - static constexpr const std::chrono::seconds m_rpc_timeout = std::chrono::seconds(30); + std::chrono::seconds m_rpc_timeout; };