Skip to content

Commit

Permalink
uac: reset the ongoing registration flags in case of error in tm call…
Browse files Browse the repository at this point in the history
…back

- resulted in being stuck in a state that didn't retry registration
- reported by AndyJRobinson, GH#124
  • Loading branch information
miconda committed Apr 16, 2015
1 parent 572d4c8 commit 08d7b66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/uac/uac_reg.c
Expand Up @@ -898,6 +898,7 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
}

error:
ri->flags &= ~(UAC_REG_ONGOING|UAC_REG_AUTHSENT);
if(reg_retry_interval) {
ri->timer_expires = time(NULL) + reg_retry_interval;
} else {
Expand Down

0 comments on commit 08d7b66

Please sign in to comment.