missed a spot

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15359 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-11-04 22:55:33 +00:00
parent a8b1226467
commit 5964e31873
1 changed files with 1 additions and 1 deletions

View File

@ -1748,7 +1748,7 @@ SWITCH_DECLARE(void) switch_channel_clear_state_handler(switch_channel_t *channe
channel->state_handlers[index] = NULL;
}
if (state_handler) {
if (channel->state_handler_index > 0) {
for (index = 0; index < channel->state_handler_index; index++) {
channel->state_handlers[index] = new_handlers[index];
}