missed a spot
--- freeswitch/trunk/src/switch_channel.c 2009-11-04 22:32:44 UTC (rev 15358)
+++ freeswitch/trunk/src/switch_channel.c 2009-11-04 22:55:33 UTC (rev 15359)
@@ -1748,7 +1748,7 @@
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];
}