start_syncing() checks that wallet is connected to daemon

This commit is contained in:
woodser
2019-08-11 17:39:22 -04:00
parent b75e681f47
commit 5a4ae89cf6
+1
View File
@@ -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();