summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_core.c')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index 650217a2..18bf542a 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -827,13 +827,6 @@ on_error:
/* 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 @@ static void busy_sleep(unsigned msec)
;
pj_gettimeofday(&now);
} while (PJ_TIME_VAL_LT(now, timeout));
-#endif
}
@@ -1203,12 +1195,9 @@ PJ_DEF(pj_status_t) pjsua_start(void)
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 @@ PJ_DEF(int) pjsua_handle_events(unsigned msec_timeout)
return -status;
return count;
+
#endif
}