rpcn: Fix file access error when loading rpcn.yml with version 1
The file was still in use when saving.
This commit is contained in:
@@ -10,8 +10,7 @@ void cfg_rpcn::load()
|
|||||||
{
|
{
|
||||||
const std::string path = cfg_rpcn::get_path();
|
const std::string path = cfg_rpcn::get_path();
|
||||||
|
|
||||||
fs::file cfg_file(path, fs::read);
|
if (fs::file cfg_file(path, fs::read); cfg_file)
|
||||||
if (cfg_file)
|
|
||||||
{
|
{
|
||||||
rpcn_log.notice("Loading RPCN config. Path: %s", path);
|
rpcn_log.notice("Loading RPCN config. Path: %s", path);
|
||||||
from_string(cfg_file.to_string());
|
from_string(cfg_file.to_string());
|
||||||
|
|||||||
Reference in New Issue
Block a user