]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Condense styling a bit
authorTravis Cross <tc@traviscross.com>
Sat, 12 Apr 2014 05:06:51 +0000 (05:06 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 12 Apr 2014 05:06:51 +0000 (05:06 +0000)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 0bb24b0e112c7fb93ba712fb5cfc2caf54e78c43..b5abae202dd007be7f5fa5e94e75b9c7deba3980 100644 (file)
@@ -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;
                }