- Timestamp:
- Jun 5, 2012 11:49:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4130 r4155 599 599 600 600 /* Cancel any re-registration timer */ 601 pjsua_cancel_timer(&acc->auto_rereg.timer); 601 if (acc->auto_rereg.timer.id) { 602 acc->auto_rereg.timer.id = PJ_FALSE; 603 pjsua_cancel_timer(&acc->auto_rereg.timer); 604 } 602 605 603 606 /* Delete registration */ … … 2107 2110 2108 2111 /* Cancel any re-registration timer */ 2109 pjsua_cancel_timer(&pjsua_var.acc[acc_id].auto_rereg.timer); 2112 if (pjsua_var.acc[acc_id].auto_rereg.timer.id) { 2113 pjsua_var.acc[acc_id].auto_rereg.timer.id = PJ_FALSE; 2114 pjsua_cancel_timer(&pjsua_var.acc[acc_id].auto_rereg.timer); 2115 } 2110 2116 2111 2117 /* Reset pointer to registration transport */ … … 2906 2912 2907 2913 /* Cancel any re-registration timer */ 2908 pjsua_cancel_timer(&acc->auto_rereg.timer); 2914 if (acc->auto_rereg.timer.id) { 2915 acc->auto_rereg.timer.id = PJ_FALSE; 2916 pjsua_cancel_timer(&acc->auto_rereg.timer); 2917 } 2909 2918 2910 2919 /* Update re-registration flag */ … … 2933 2942 acc->index, delay.sec)); 2934 2943 2935 pjsua_schedule_timer(&acc->auto_rereg.timer, &delay); 2944 acc->auto_rereg.timer.id = PJ_TRUE; 2945 if (pjsua_schedule_timer(&acc->auto_rereg.timer, &delay) != PJ_SUCCESS) 2946 acc->auto_rereg.timer.id = PJ_FALSE; 2936 2947 } 2937 2948
Note: See TracChangeset
for help on using the changeset viewer.