[svn-commits] kmoore: branch kmoore/peer-field-restoration r399839 - in /team/kmoore/peer-f...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Sep 25 15:29:51 CDT 2013
Author: kmoore
Date: Wed Sep 25 15:29:49 2013
New Revision: 399839
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399839
Log:
Don't bail when a snapshot can't be found
Modified:
team/kmoore/peer-field-restoration/main/cel.c
team/kmoore/peer-field-restoration/tests/test_cel.c
Modified: team/kmoore/peer-field-restoration/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/peer-field-restoration/main/cel.c?view=diff&rev=399839&r1=399838&r2=399839
==============================================================================
--- team/kmoore/peer-field-restoration/main/cel.c (original)
+++ team/kmoore/peer-field-restoration/main/cel.c Wed Sep 25 15:29:49 2013
@@ -1067,10 +1067,7 @@
current_snapshot = ast_channel_snapshot_get_latest(current_chan);
if (!current_snapshot) {
- ast_free(peer_str);
- ao2_cleanup(current_chan);
- ao2_iterator_destroy(&i);
- return NULL;
+ continue;
}
ast_str_append(&peer_str, 0, "%s,", current_snapshot->name);
Modified: team/kmoore/peer-field-restoration/tests/test_cel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/peer-field-restoration/tests/test_cel.c?view=diff&rev=399839&r1=399838&r2=399839
==============================================================================
--- team/kmoore/peer-field-restoration/tests/test_cel.c (original)
+++ team/kmoore/peer-field-restoration/tests/test_cel.c Wed Sep 25 15:29:49 2013
@@ -313,11 +313,7 @@
current_snapshot = ast_channel_snapshot_get_latest(current_chan);
if (!current_snapshot) {
-
- ast_free(peer_str);
- ao2_cleanup(current_chan);
- ao2_iterator_destroy(&i);
- return NULL;
+ continue;
}
ast_str_append(&peer_str, 0, "%s,", current_snapshot->name);
More information about the svn-commits
mailing list