From 90ac85d9478297bc1b9e8f8bacf5ca3c32603ba4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 28 Dec 2006 20:05:54 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3862 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_woomera/mod_woomera.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_woomera/mod_woomera.c b/src/mod/endpoints/mod_woomera/mod_woomera.c index 11f6f48a28..4d1a912f01 100644 --- a/src/mod/endpoints/mod_woomera/mod_woomera.c +++ b/src/mod/endpoints/mod_woomera/mod_woomera.c @@ -660,14 +660,21 @@ static int woomera_message_parse(switch_socket_t *fd, woomera_message * wmsg, in bytes = 0; while (!strstr(buf, WOOMERA_RECORD_SEPERATOR)) { size_t len = 1; + switch_status_t status; if (!profile->thread_running) { return -1; } - if (switch_socket_recv(fd, ptr, &len) != SWITCH_STATUS_SUCCESS) { - return -1; - } + status = switch_socket_recv(fd, ptr, &len); + if (SWITCH_STATUS_IS_BREAK(status)) { + continue; + } + + if (status != SWITCH_STATUS_SUCCESS) { + return -1; + } + ptr++; bytes++; }