fix(Globals): Don't forget to close file handle
This commit is contained in:
parent
0564af724e
commit
9821a28e10
@ -309,9 +309,13 @@ struct globals {
|
||||
try
|
||||
{
|
||||
file >> this->options;
|
||||
|
||||
file.close();
|
||||
}
|
||||
catch (const std::exception&)
|
||||
{
|
||||
file.close();
|
||||
|
||||
LOG(WARNING) << "Detected corrupt settings, writing default config...";
|
||||
|
||||
this->write_default_config();
|
||||
|
Reference in New Issue
Block a user