From: Travis Cross Date: Sat, 12 Apr 2014 05:06:51 +0000 (+0000) Subject: Condense styling a bit X-Git-Tag: v1.5.12~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12af80d6b2814976c55764fa913ea75c47a12017;p=thirdparty%2Ffreeswitch.git Condense styling a bit --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 0bb24b0e11..b5abae202d 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3736,11 +3736,8 @@ void sofia_presence_handle_sip_i_subscribe(int status, (char *) sip->sip_request->rq_method_name, key, sizeof(key), network_ip, network_port, &v_event, 0, REG_REGISTER, to_user, NULL, NULL, NULL); if (v_event) switch_event_destroy(&v_event); - } else if ( sofia_reg_handle_register(nua, profile, nh, sip, de, REG_REGISTER, key, sizeof(key), &v_event, NULL, NULL, NULL)) { - if (v_event) { - switch_event_destroy(&v_event); - } - + } else if (sofia_reg_handle_register(nua, profile, nh, sip, de, REG_REGISTER, key, sizeof(key), &v_event, NULL, NULL, NULL)) { + if (v_event) switch_event_destroy(&v_event); goto end; }