From d8dc4b6a36d794d9589630be96b9eb7e9b142f1a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 25 Apr 2011 11:47:45 +0000 Subject: Fixed #1245: Assertion may be raised if iPhone app woken up to perform registration and the server is down (thanks Alejandro Orellana for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3542 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip-ua/sip_reg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pjsip/src') diff --git a/pjsip/src/pjsip-ua/sip_reg.c b/pjsip/src/pjsip-ua/sip_reg.c index d96e3c88..aa5c753e 100644 --- a/pjsip/src/pjsip-ua/sip_reg.c +++ b/pjsip/src/pjsip-ua/sip_reg.c @@ -1154,6 +1154,9 @@ handle_err: unsigned contact_cnt = 0; pjsip_contact_hdr *contact[PJSIP_REGC_MAX_CONTACT]; + /* Mark operation as complete */ + regc->current_op = REGC_IDLE; + if (tsx->status_code/100 == 2) { rdata = event->body.tsx_state.src.rdata; @@ -1164,9 +1167,6 @@ handle_err: PJSIP_REGC_MAX_CONTACT, contact); - /* Mark operation as complete */ - regc->current_op = REGC_IDLE; - /* Schedule next registration */ schedule_registration(regc, expiration); -- cgit v1.2.3