]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_config: Always reload configuration on errors.
authorJoshua C. Colp <jcolp@sangoma.com>
Tue, 19 May 2020 12:55:32 +0000 (09:55 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 20 May 2020 15:08:11 +0000 (10:08 -0500)
commit441b614fa0cc74921bf9c3bf6b512b8f4e2d6b3d
tree7f403325ddb50f3d90bf8e2fce900ea56a3a9dae
parent545c72e335a67f65380fc7dcdbe6942fdc3be341
res_sorcery_config: Always reload configuration on errors.

When a configuration file in Asterisk is loaded
information about it is stored such that on a
reload it is not reloaded if nothing has changed.
This can be problematic when an error exists in
a configuration file in PJSIP since the error
will be output at start and not subsequently on
reload if the file is unchanged.

This change makes it so that if an error is
encountered when res_sorcery_config is loading
a configuration file a reload will always read
in the configuration file, allowing the error
to be seen easier.

Change-Id: If2e05a017570f1f5f4f49120da09601e9ecdf9ed
res/res_sorcery_config.c