freetdm: ftmod_wanpipe - use SANGOMA_WAIT_INFINITE instead of -1

This commit is contained in:
Moises Silva 2010-11-30 10:49:23 -05:00
parent 7a7a387f55
commit bce61e7f92
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ static __inline__ int tdmv_api_wait_socket(ftdm_channel_t *ftdmchan, int timeout
uint32_t outflags = 0;
sangoma_wait_obj_t *sangoma_wait_obj = ftdmchan->io_data;
if (timeout == -1) {
timeout = SANGOMA_WAIT_INFINITE;
}
err = sangoma_waitfor(sangoma_wait_obj, inflags, &outflags, timeout);
*flags = 0;
if (err == SANG_STATUS_SUCCESS) {