[svn-commits] mmichelson: branch mmichelson/features_config r390385 - /team/mmichelson/feat...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jun 3 15:25:16 CDT 2013
Author: mmichelson
Date: Mon Jun 3 15:25:14 2013
New Revision: 390385
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390385
Log:
Unlock the channel when returning early due to not being able to retrieve features configuration.
Modified:
team/mmichelson/features_config/bridges/bridge_builtin_features.c
Modified: team/mmichelson/features_config/bridges/bridge_builtin_features.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/features_config/bridges/bridge_builtin_features.c?view=diff&rev=390385&r1=390384&r2=390385
==============================================================================
--- team/mmichelson/features_config/bridges/bridge_builtin_features.c (original)
+++ team/mmichelson/features_config/bridges/bridge_builtin_features.c Mon Jun 3 15:25:14 2013
@@ -67,6 +67,7 @@
xfer_cfg = ast_get_chan_features_xfer_config(chan);
if (!xfer_cfg) {
ast_log(LOG_ERROR, "Unable to get transfer configuration\n");
+ ast_channel_unlock(chan);
return -1;
}
digit_timeout = xfer_cfg->transferdigittimeout;
@@ -292,6 +293,7 @@
xfer_cfg = ast_get_chan_features_xfer_config(bridge_channel->chan);
if (!xfer_cfg) {
ast_log(LOG_ERROR, "Unable to get transfer configuration options\n");
+ ast_channel_unlock(bridge_channel->chan);
return 0;
}
if (attended_transfer) {
More information about the svn-commits
mailing list