diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-09-18 11:40:52 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-09-18 11:40:52 +0200 |
commit | 14f88f6b983a27648ed4257515a2c3b1c00f1445 (patch) | |
tree | 3b86b8399410c31294fc5a0a03005435fb8f48ae | |
parent | Merge pull request #1092 (diff) | |
parent | miner: do not try to save config if the path isn't set (diff) | |
download | monero-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.cpp | 3 |
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; |