Skip to content

Commit af70a3e

Browse files
authored
Merge pull request #2467 from hxy7yx/main-1
datalayers:cancel verifying connections before configuration
2 parents c95d37b + c189cf8 commit af70a3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/datalayers/datalayers_plugin_intf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ static int config_datalayers_client(neu_plugin_t * plugin,
135135
if (NULL == plugin->client) {
136136
plog_error(plugin, "datalayers client_create failed");
137137
plugin->common.link_state = NEU_NODE_LINK_STATE_DISCONNECTED;
138-
return NEU_ERR_DATALAYERS_CONNECT_FAILURE;
138+
} else {
139+
plugin->common.link_state = NEU_NODE_LINK_STATE_CONNECTED;
139140
}
140141

141-
plugin->common.link_state = NEU_NODE_LINK_STATE_CONNECTED;
142142
return NEU_ERR_SUCCESS;
143143
}
144144

0 commit comments

Comments
 (0)