- Timestamp:
- Jun 4, 2014 9:23:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/timer.c
r4567 r4855 329 329 330 330 // Check to see if the timer_id is out of range 331 if (entry->_timer_id < 0 || (pj_size_t)entry->_timer_id > ht->max_size) 331 if (entry->_timer_id < 0 || (pj_size_t)entry->_timer_id > ht->max_size) { 332 entry->_timer_id = -1; 332 333 return 0; 334 } 333 335 334 336 timer_node_slot = ht->timer_ids[entry->_timer_id]; 335 337 336 if (timer_node_slot < 0) // Check to see if timer_id is still valid. 338 if (timer_node_slot < 0) { // Check to see if timer_id is still valid. 339 entry->_timer_id = -1; 337 340 return 0; 341 } 338 342 339 343 if (entry != ht->heap[timer_node_slot]) … … 341 345 if ((flags & F_DONT_ASSERT) == 0) 342 346 pj_assert(entry == ht->heap[timer_node_slot]); 347 entry->_timer_id = -1; 343 348 return 0; 344 349 }
Note: See TracChangeset
for help on using the changeset viewer.