From 5bd84043b956f91032aa6df07c6c553e4ef38ae5 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 18 Jun 2021 19:05:02 +0200 Subject: [PATCH] sip: origin: codestyle --- plugins/sip/calls-sip-origin.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c index 990033d..45e2bc2 100644 --- a/plugins/sip/calls-sip-origin.c +++ b/plugins/sip/calls-sip-origin.c @@ -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;