]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7157 #resolve
authorBrian West <brian@freeswitch.org>
Fri, 16 Jan 2015 15:31:08 +0000 (09:31 -0600)
committerBrian West <brian@freeswitch.org>
Fri, 16 Jan 2015 15:31:08 +0000 (09:31 -0600)
src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c

index 5bda3d7c181a4c46363e414eedd4eb44c59baf82..098bd52a0e7b512921bcf4fd0f2859a06dc9fbb4 100644 (file)
@@ -399,8 +399,9 @@ static void process_cdr(cdr_data_t *data)
                                switch_assert(globals.url_count <= MAX_URLS);
                                if (globals.url_index >= globals.url_count) {
                                        globals.url_index = 0;
-                               }
-                               switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Retry will be with url [%s]\n", globals.urls[globals.url_index]);
+                               } else {
+                                       switch_log_printf(SWITCH_CHANNEL_UUID_LOG(data->uuid), SWITCH_LOG_ERROR, "Retry will be with url [%s]\n", globals.urls[globals.url_index]);
+                                       }
                        }
                }
                switch_curl_easy_cleanup(curl_handle);