From 139ff0148cb5b37b57807a257813dbf180c289b7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 21 Dec 2008 22:17:14 +0000 Subject: [PATCH] windows port git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10901 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/src/esl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 5e9d6e0e74..44c5557b60 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -562,10 +562,12 @@ esl_status_t esl_disconnect(esl_handle_t *handle) esl_status_t esl_recv_event_timed(esl_handle_t *handle, uint32_t ms, esl_event_t **save_event) { fd_set rfds, efds; - struct timeval tv = { 0, ms * 1000 }; + struct timeval tv = { 0 }; int max, activity; esl_status_t status = ESL_SUCCESS; + tv.tv_usec = ms * 1000; + esl_mutex_lock(handle->mutex); FD_ZERO(&rfds); FD_ZERO(&efds);