mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
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.
This commit is contained in:
parent
77224bbf48
commit
e86c5b9b53
1 changed files with 2 additions and 1 deletions
|
@ -391,6 +391,7 @@ namespace cryptonote
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//success update, lets update config
|
//success update, lets update config
|
||||||
|
if (!m_config_folder_path.empty())
|
||||||
epee::serialization::store_t_to_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME);
|
epee::serialization::store_t_to_json_file(m_config, m_config_folder_path + "/" + MINER_CONFIG_FILE_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue