]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: ftmod_wanpipe - not locking the channel on wanpipe_channel_next_event()...
authorArnaldo Pereira <arnaldo@sangoma.com>
Wed, 22 Dec 2010 22:10:41 +0000 (20:10 -0200)
committerArnaldo Pereira <arnaldo@sangoma.com>
Wed, 22 Dec 2010 22:10:41 +0000 (20:10 -0200)
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c

index caddc333a0cd8dc35aef352f5ddfe943e336f5ec..7801bd6680238b3622375442d3173e76f9373833 100644 (file)
@@ -1385,13 +1385,10 @@ FIO_CHANNEL_NEXT_EVENT_FUNCTION(wanpipe_channel_next_event)
        }
 
        ftdm_log_chan(ftdmchan, FTDM_LOG_DEBUG, "read wanpipe event %d\n", tdm_api.wp_tdm_cmd.event.wp_tdm_api_event_type);
-       ftdm_channel_lock(ftdmchan);
        if ((wanpipe_channel_process_event(ftdmchan, &event_id, &tdm_api)) != FTDM_SUCCESS) {
                ftdm_log_chan_msg(ftdmchan, FTDM_LOG_ERROR, "Failed to process events from channel\n");
-               ftdm_channel_unlock(ftdmchan);
                return FTDM_FAIL;
        }
-       ftdm_channel_unlock(ftdmchan);
 
        ftdmchan->last_event_time = 0;
        span->event_header.e_type = FTDM_EVENT_OOB;