]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 29 Sep 2008 17:55:22 +0000 (17:55 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 29 Sep 2008 17:55:22 +0000 (17:55 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@574 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_analog/ozmod_analog.c

index d6e2f5bb35e6041c3c3b4cb7535353adf36a45ae..df82fda5f2617042b4046c8f972bcf9ffc5cd087 100644 (file)
@@ -703,11 +703,11 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
                zap_buffer_destroy(&dt_buffer);
        }
 
-       if (zchan->state != ZAP_CHANNEL_STATE_DOWN) {
-               zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_DOWN);
+       if (closed_chan->state != ZAP_CHANNEL_STATE_DOWN) {
+               zap_set_state_locked(closed_chan, ZAP_CHANNEL_STATE_DOWN);
        }
 
-       zap_log(ZAP_LOG_DEBUG, "ANALOG CHANNEL %d:%d thread ended.\n", zchan->span_id, zchan->chan_id);
+       zap_log(ZAP_LOG_DEBUG, "ANALOG CHANNEL %d:%d thread ended.\n", closed_chan->span_id, closed_chan->chan_id);
        zap_clear_flag(closed_chan, ZAP_CHANNEL_INTHREAD);
 
        return NULL;