Avoid duplicate configuration load failure debug messages when handling 'cfgmerge' command.

git-svn-id: http://voip.null.ro/svn/yate@6581 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2022-12-19 12:03:04 +00:00
parent e8419f18b5
commit e89fc66466
1 changed files with 2 additions and 1 deletions

View File

@ -1738,7 +1738,8 @@ bool Connection::processCommand(const char *line, bool saveLine)
writeStr("Missing configuration name\r\n");
else {
String conf = Engine::configFile(str);
Configuration cfg(conf,false);
Configuration cfg;
cfg = conf;
if (!cfg.load()) {
str = "Failed to load configuration file '" + conf + "'\r\n";
writeStr(str);