diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-02-28 15:36:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-02-28 15:36:19 +0000 |
commit | 775d5ba6838c9a263ec4c4196e3457cf0c87d036 (patch) | |
tree | 38446f6a420a7db38c447272d8034770f0336617 | |
parent | ec5752359360672417539331c662d0d56385802e (diff) |
Fixed ticket #145: pj_ioqueue_poll() blocks forever because of invalid timeout value (thanks Igor S)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1017 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. |