diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-18 09:57:42 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-18 09:57:42 +0100 |
commit | e86c5b9b53254899a2103087cfdc505d28fc9c77 (patch) | |
tree | 5596cd8121da78d9ab9e8e4323a5d2f11536342c /src/cryptonote_core/miner.cpp | |
parent | Merge pull request #1084 (diff) | |
download | monero-e86c5b9b53254899a2103087cfdc505d28fc9c77.tar.xz |
miner: do not try to save config if the path isn't set
This saves on an exception dump when trying to write to /
after finding a block.
Diffstat (limited to 'src/cryptonote_core/miner.cpp')
-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; |