Changeset 5558 for pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
- Timestamp:
- Feb 20, 2017 1:29:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r5397 r5558 510 510 } 511 511 512 if (timer_id != TIMER_TYPE_NONE ) {512 if (timer_id != TIMER_TYPE_NONE && seconds > 0) { 513 513 pj_time_val timeout; 514 514 515 PJ_ASSERT_ON_FAIL(seconds > 0, return);516 515 PJ_ASSERT_ON_FAIL(timer_id>TIMER_TYPE_NONE && timer_id<TIMER_TYPE_MAX, 517 516 return); … … 527 526 timer_names[sub->timer.id], timeout.sec)); 528 527 } 528 } 529 530 531 /* 532 * Set event subscription UAS timout. 533 */ 534 PJ_DEF(void) pjsip_evsub_uas_set_timeout(pjsip_evsub *sub, pj_uint32_t seconds) 535 { 536 set_timer(sub, TIMER_TYPE_UAS_TIMEOUT, (pj_int32_t)seconds); 529 537 } 530 538
Note: See TracChangeset
for help on using the changeset viewer.