Merge pull request #1093

e86c5b9 miner: do not try to save config if the path isn't set (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-09-18 11:40:52 +02:00
commit 14f88f6b98
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -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;