]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed a spot
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 4 Nov 2009 22:55:33 +0000 (22:55 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 4 Nov 2009 22:55:33 +0000 (22:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15359 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index a80c6f5cfcf968bdcd13e10ea59cc5e28cd99a0d..eb89cf9831ba518abc8717dee4d11ae2b8a4f3c1 100644 (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];
                }