Commit e57f3254 authored by Simon Morlat's avatar Simon Morlat
Browse files

Fix bad notification of Failed state for ProxyConfig.

parent 01759692
......@@ -127,14 +127,14 @@ void SalRegisterOp::registerRefresherListener (belle_sip_refresher_t *refresher,
op->ref(); // Take a ref while invoking the callback to make sure the operations done after are valid
op->mRoot->mCallbacks.register_failure(op);
if ((op->mState != State::Terminated) && op->mAuthInfo) {
// Add pending auth
op->mRoot->addPendingAuth(op);
switch (statusCode){
case 401:
BCTBX_NO_BREAK;
case 407:
// Add pending auth for both 401 and 407, as we got a non-working authentication.
op->mRoot->addPendingAuth(op);
BCTBX_NO_BREAK;
// In any case notify the failure.
case 403:
op->mRoot->mCallbacks.auth_failure(op, op->mAuthInfo);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment