diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-02-28 15:38:01 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-02-28 15:38:01 +0000 |
commit | e7814becc44f4cb56ed93cd1056004cab6a7d3f6 (patch) | |
tree | 95609ec26bbe492043d80902a6102427badb19d6 | |
parent | a2d57cca9a5898724d8d56d16a977e2392163aa5 (diff) |
Fixed ticket #144: pj_ioqueue_poll() blocks forever because of invalid timeout value (thanks Igor S)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1018 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsip/sip_endpoint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pjsip/src/pjsip/sip_endpoint.c b/pjsip/src/pjsip/sip_endpoint.c index b7c7578c..b587ac1a 100644 --- a/pjsip/src/pjsip/sip_endpoint.c +++ b/pjsip/src/pjsip/sip_endpoint.c @@ -684,6 +684,7 @@ PJ_DEF(pj_status_t) pjsip_endpt_handle_events2(pjsip_endpoint *endpt, * ioqueue_poll() will block forever! */ pj_assert(timeout.sec >= 0 && timeout.msec >= 0); + if (timeout.msec >= 1000) timeout.msec = 999; /* If caller specifies maximum time to wait, then compare the value with * the timeout to wait from timer, and use the minimum value. |