提交 90ac85d9 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3862 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 265268cc
...@@ -660,14 +660,21 @@ static int woomera_message_parse(switch_socket_t *fd, woomera_message * wmsg, in ...@@ -660,14 +660,21 @@ static int woomera_message_parse(switch_socket_t *fd, woomera_message * wmsg, in
bytes = 0; bytes = 0;
while (!strstr(buf, WOOMERA_RECORD_SEPERATOR)) { while (!strstr(buf, WOOMERA_RECORD_SEPERATOR)) {
size_t len = 1; size_t len = 1;
switch_status_t status;
if (!profile->thread_running) { if (!profile->thread_running) {
return -1; return -1;
} }
if (switch_socket_recv(fd, ptr, &len) != SWITCH_STATUS_SUCCESS) { status = switch_socket_recv(fd, ptr, &len);
return -1; if (SWITCH_STATUS_IS_BREAK(status)) {
} continue;
}
if (status != SWITCH_STATUS_SUCCESS) {
return -1;
}
ptr++; ptr++;
bytes++; bytes++;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论