windows port
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10900 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
65b9fe8e8b
commit
9665606806
|
@ -824,13 +824,13 @@ esl_status_t esl_send(esl_handle_t *handle, const char *cmd)
|
|||
}
|
||||
|
||||
if (send(handle->sock, cmd, strlen(cmd), 0)) {
|
||||
strerror_r(handle->errno, handle->err, sizeof(handle->err));
|
||||
strerror_r(handle->errnum, handle->err, sizeof(handle->err));
|
||||
return ESL_FAIL;
|
||||
}
|
||||
|
||||
if (!(*e == '\n' && *(e-1) == '\n')) {
|
||||
if (send(handle->sock, "\n\n", 2, 0)) {
|
||||
strerror_r(handle->errno, handle->err, sizeof(handle->err));
|
||||
strerror_r(handle->errnum, handle->err, sizeof(handle->err));
|
||||
return ESL_FAIL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue