mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
sip: origin: codestyle
This commit is contained in:
parent
cce8318a64
commit
5bd84043b9
1 changed files with 9 additions and 10 deletions
|
@ -456,22 +456,21 @@ sip_r_register (int status,
|
|||
|
||||
if (status == 200) {
|
||||
g_debug ("REGISTER successful");
|
||||
|
||||
origin->state = CALLS_ACCOUNT_ONLINE;
|
||||
}
|
||||
else if (status == 401 || status == 407) {
|
||||
sip_authenticate (origin, nh, sip);
|
||||
|
||||
} else if (status == 401 || status == 407) {
|
||||
sip_authenticate (origin, nh, sip);
|
||||
origin->state = CALLS_ACCOUNT_AUTHENTICATING;
|
||||
}
|
||||
else if (status == 403) {
|
||||
|
||||
} else if (status == 403) {
|
||||
g_warning ("wrong credentials?");
|
||||
origin->state = CALLS_ACCOUNT_AUTHENTICATION_FAILURE;
|
||||
}
|
||||
else if (status == 904) {
|
||||
|
||||
} else if (status == 904) {
|
||||
g_warning ("unmatched challenge");
|
||||
origin->state = CALLS_ACCOUNT_AUTHENTICATION_FAILURE;
|
||||
}
|
||||
|
||||
g_object_notify_by_pspec (G_OBJECT (origin), props[PROP_ACC_STATE]);
|
||||
}
|
||||
|
||||
|
@ -865,8 +864,8 @@ go_online (CallsAccount *account,
|
|||
TAG_IF (display_name, NUTAG_M_DISPLAY (display_name)),
|
||||
NUTAG_REGISTRAR (registrar_url),
|
||||
TAG_END ());
|
||||
}
|
||||
else {
|
||||
|
||||
} else {
|
||||
if (self->state == CALLS_ACCOUNT_OFFLINE)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue