mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add flags to state_handler table
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15356 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1736,7 +1736,14 @@ SWITCH_DECLARE(void) switch_channel_clear_state_handler(switch_channel_t *channe
|
||||
new_handlers[channel->state_handler_index++] = channel->state_handlers[index];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (index = 0; index < i; index++) {
|
||||
if (switch_test_flag(channel->state_handlers[index], SSH_FLAG_STICKY)) {
|
||||
new_handlers[channel->state_handler_index++] = channel->state_handlers[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (index = 0; index < SWITCH_MAX_STATE_HANDLERS; index++) {
|
||||
channel->state_handlers[index] = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user