|
@@ -362,12 +362,12 @@ createSession(UA_Client *client) {
|
|
|
UA_StatusCode
|
|
|
UA_Client_connectInternal(UA_Client *client, const char *endpointUrl,
|
|
|
UA_Boolean endpointsHandshake, UA_Boolean createNewSession) {
|
|
|
- UA_ChannelSecurityToken_init(&client->channel.securityToken);
|
|
|
- client->channel.state = UA_SECURECHANNELSTATE_FRESH;
|
|
|
-
|
|
|
if(client->state >= UA_CLIENTSTATE_CONNECTED)
|
|
|
return UA_STATUSCODE_GOOD;
|
|
|
|
|
|
+ UA_ChannelSecurityToken_init(&client->channel.securityToken);
|
|
|
+ client->channel.state = UA_SECURECHANNELSTATE_FRESH;
|
|
|
+
|
|
|
UA_StatusCode retval = UA_STATUSCODE_GOOD;
|
|
|
client->connection =
|
|
|
client->config.connectionFunc(client->config.localConnectionConfig,
|