Ticket #675:
- Fixed ICE+STUN panic E32User-CBASE 46, the problem seems to be inside the Symbian version of pjsua_handle_events().
- Updated minor things, e.g: compile warnings
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2379 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index 650217a..18bf542 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -827,13 +827,6 @@
/* Sleep with polling */
static void busy_sleep(unsigned msec)
{
-#if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0
- /* Ideally we shouldn't call pj_thread_sleep() and rather
- * CActiveScheduler::WaitForAnyRequest() here, but that will
- * drag in Symbian header and it doesn't look pretty.
- */
- pj_thread_sleep(msec);
-#else
pj_time_val timeout, now;
pj_gettimeofday(&timeout);
@@ -845,7 +838,6 @@
;
pj_gettimeofday(&now);
} while (PJ_TIME_VAL_LT(now, timeout));
-#endif
}
@@ -1203,12 +1195,9 @@
PJ_DEF(int) pjsua_handle_events(unsigned msec_timeout)
{
#if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0
- /* Ideally we shouldn't call pj_thread_sleep() and rather
- * CActiveScheduler::WaitForAnyRequest() here, but that will
- * drag in Symbian header and it doesn't look pretty.
- */
- pj_thread_sleep(msec_timeout);
- return msec_timeout;
+
+ return pj_symbianos_poll(-1, msec_timeout);
+
#else
unsigned count = 0;
@@ -1225,6 +1214,7 @@
return -status;
return count;
+
#endif
}