summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/timer_symbian.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pj/timer_symbian.cpp')
-rw-r--r--pjlib/src/pj/timer_symbian.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/pjlib/src/pj/timer_symbian.cpp b/pjlib/src/pj/timer_symbian.cpp
index 398f7722..eaf4f9ed 100644
--- a/pjlib/src/pj/timer_symbian.cpp
+++ b/pjlib/src/pj/timer_symbian.cpp
@@ -88,7 +88,11 @@ void CPjTimerEntry::ConstructL(const pj_time_val *delay)
rtimer_.CreateLocal();
CActiveScheduler::Add(this);
- rtimer_.After(iStatus, PJ_TIME_VAL_MSEC(*delay) * 1000);
+ pj_int32_t interval = PJ_TIME_VAL_MSEC(*delay) * 1000;
+ if (interval < 0) {
+ interval = 0;
+ }
+ rtimer_.After(iStatus, interval);
SetActive();
}