Changeset 114


Ignore:
Timestamp:
Jan 8, 2006 11:55:09 PM (18 years ago)
Author:
bennylp
Message:

Timer heap checks if callback is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/timer.c

    r66 r114  
    445445 
    446446    PJ_ASSERT_RETURN(ht && entry && delay, PJ_EINVAL); 
     447    PJ_ASSERT_RETURN(entry->cb != NULL, PJ_EINVAL); 
    447448 
    448449    pj_gettimeofday(&expires); 
     
    495496 
    496497        unlock_timer_heap(ht); 
    497         (*node->cb)(ht, node); 
     498        if (node->cb) 
     499            (*node->cb)(ht, node); 
    498500        lock_timer_heap(ht); 
    499501    } 
Note: See TracChangeset for help on using the changeset viewer.