From 3910889aec891e96179a8f748e594857588fb389 Mon Sep 17 00:00:00 2001 From: Arnaldo Pereira Date: Wed, 22 Dec 2010 20:10:41 -0200 Subject: [PATCH] freetdm: ftmod_wanpipe - not locking the channel on wanpipe_channel_next_event(), now the core takes care of that --- libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c index caddc333a0..7801bd6680 100644 --- a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c +++ b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c @@ -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;