missed a spot
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15359 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a8b1226467
commit
5964e31873
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue