Changeset 5971 for pjproject/trunk/pjlib/src/pj/timer.c
- Timestamp:
- Apr 23, 2019 8:42:45 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/timer.c
r5934 r5971 503 503 504 504 /* Prevent same entry from being scheduled more than once */ 505 PJ_ASSERT_RETURN(entry->_timer_id < 1, PJ_EINVALIDOP);505 //PJ_ASSERT_RETURN(entry->_timer_id < 1, PJ_EINVALIDOP); 506 506 507 507 #if PJ_TIMER_DEBUG … … 513 513 514 514 lock_timer_heap(ht); 515 516 /* Prevent same entry from being scheduled more than once */ 517 if (pj_timer_entry_running(entry)) { 518 unlock_timer_heap(ht); 519 PJ_LOG(3,(THIS_FILE, "Bug! Rescheduling outstanding entry (%p)", 520 entry)); 521 return PJ_EINVALIDOP; 522 } 523 515 524 status = schedule_entry(ht, entry, &expires); 516 525 if (status == PJ_SUCCESS) {
Note: See TracChangeset
for help on using the changeset viewer.