[Freeswitch-svn] [commit] r3862 - freeswitch/trunk/src/mod/endpoints/mod_woomera

Freeswitch SVN anthm at freeswitch.org
Thu Dec 28 15:05:54 EST 2006


Author: anthm
Date: Thu Dec 28 15:05:54 2006
New Revision: 3862

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c

Log:
update

Modified: freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c	Thu Dec 28 15:05:54 2006
@@ -660,14 +660,21 @@
 	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++;
 	}



More information about the Freeswitch-svn mailing list