We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 294dc34 commit 2a22534Copy full SHA for 2a22534
1 file changed
src/session_server.c
@@ -2958,8 +2958,7 @@ nc_ch_client_thread(void *arg)
2958
/* set next endpoint to try */
2959
if (client->start_with == NC_CH_FIRST_LISTED) {
2960
next_endpt_index = 0;
2961
- }
2962
- else {
+ } else {
2963
/* we keep the current one but due to unlock/lock we have to find it again */
2964
for (next_endpt_index = 0; next_endpt_index < client->ch_endpt_count; ++next_endpt_index) {
2965
if (!strcmp(client->ch_endpts[next_endpt_index].name, cur_endpt_name)) {
@@ -3005,7 +3004,7 @@ nc_ch_client_thread(void *arg)
3005
3004
++next_endpt_index;
3006
} else {
3007
/* cur_endpoint is the last, start with the first one */
3008
- next_endpt_index = 0;
+ next_endpt_index = 0;
3009
}
3010
3011
cur_attempts = 0;
0 commit comments