diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-29 12:38:25 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-29 12:38:25 +0000 |
commit | 48a492ee742bc593bc332cd5176d0c33b1a13604 (patch) | |
tree | 8f83ce3fa0966a9708d1e8f2530341c4bf43bee7 /pjsip/src/pjsip-simple/evsub.c | |
parent | 9bd0000b4eba8b96af12366f55d84d3a59130d1a (diff) |
Fixed bug in event subscription when it is challenged/authenticated
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@424 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsip-simple/evsub.c')
-rw-r--r-- | pjsip/src/pjsip-simple/evsub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pjsip/src/pjsip-simple/evsub.c b/pjsip/src/pjsip-simple/evsub.c index 9a9b852d..7b13d548 100644 --- a/pjsip/src/pjsip-simple/evsub.c +++ b/pjsip/src/pjsip-simple/evsub.c @@ -1355,10 +1355,6 @@ static pjsip_evsub *on_new_transaction( pjsip_transaction *tsx, sub->pending_sub = tsx; - } else if (tsx == sub->pending_sub && - tsx->state >= PJSIP_TSX_STATE_COMPLETED) - { - sub->pending_sub = NULL; } return sub; @@ -1468,6 +1464,10 @@ static void on_tsx_state_uac( pjsip_evsub *sub, pjsip_transaction *tsx, return; } + /* Clear pending subscription */ + if (tsx == sub->pending_sub) + sub->pending_sub = NULL; + /* Handle authentication. */ if (tsx->status_code==401 || tsx->status_code==407) { pjsip_tx_data *tdata; |