From 5a4ae89cf66c8a2175e4dfe99880e83c7cc0f7a9 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 11 Aug 2019 17:39:22 -0400 Subject: [PATCH] start_syncing() checks that wallet is connected to daemon --- src/wallet/monero_wallet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/monero_wallet.cpp b/src/wallet/monero_wallet.cpp index 4ea167d..558c818 100644 --- a/src/wallet/monero_wallet.cpp +++ b/src/wallet/monero_wallet.cpp @@ -1196,6 +1196,7 @@ namespace monero { * Start automatic syncing as its own thread. */ void monero_wallet::start_syncing() { + if (!m_is_connected) throw runtime_error("Wallet is not connected to daemon"); if (!m_syncing_enabled) { m_syncing_enabled = true; m_sync_cv.notify_one();