diff options
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_core.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -41,7 +41,8 @@ elif echo $SYSTEM | grep -i linux > /dev/null; then elif echo $KERNEL_VER | grep '^2\.0' > /dev/null; then LINUX_EPOLL=select else - LINUX_POLL=epoll +# LINUX_POLL=epoll + LINUX_POLL=select fi elif echo $SYSTEM | grep -i mingw > /dev/null; then OS_NAME=win32 diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 1ff4fac2..496c3645 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -454,7 +454,7 @@ static int PJ_THREAD_FUNC pjsua_poll(void *arg) pj_status_t status; status = pjsip_endpt_handle_events (pjsua.endpt, &timeout); - if (status != last_err) { + if (status != PJ_SUCCESS && status != last_err) { last_err = status; pjsua_perror(THIS_FILE, "handle_events() returned error", status); } |