Enforce config duplication
I did this to avoid crashes when reusing the same config object.
This commit is contained in:
parent
b835e11fa5
commit
5058c2421c
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ func reload_configuration(new_config: CoreConfiguration = CoreConfiguration.new(
|
|||
var initialized = config != null
|
||||
if initialized: loggeri.verb("Reloading CORE's configuration")
|
||||
if config != null: config.queue_free()
|
||||
config = new_config
|
||||
config = new_config.duplicate()
|
||||
if is_devmode(): # Override configuration in development mode
|
||||
config.logger_level = CoreTypes.LoggerLevel.DIAG
|
||||
if initialized: loggeri.verb("Overrode configuration (development mode)")
|
||||
|
|
Loading…
Reference in a new issue