aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-18 11:40:52 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-18 11:40:52 +0200
commit14f88f6b983a27648ed4257515a2c3b1c00f1445 (patch)
tree3b86b8399410c31294fc5a0a03005435fb8f48ae
parentMerge pull request #1092 (diff)
parentminer: do not try to save config if the path isn't set (diff)
downloadmonero-14f88f6b983a27648ed4257515a2c3b1c00f1445.tar.xz
Merge pull request #1093
e86c5b9 miner: do not try to save config if the path isn't set (moneromooo-monero)
-rw-r--r--src/cryptonote_core/miner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/miner.cpp b/src/cryptonote_core/miner.cpp
index bad3f30bd..ec717a13d 100644
--- a/src/cryptonote_core/miner.cpp
+++ b/src/cryptonote_core/miner.cpp
@@ -391,7 +391,8 @@ namespace cryptonote
}else
{
//success update, lets update config
- epee::serialization::store_t_to_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME);
+ if (!m_config_folder_path.empty())
+ epee::serialization::store_t_to_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME);
}
}
nonce+=m_threads_total;