Due to disconnecting all clients procedure upon database update, the
just connected client could have been disconnected resulting in
CYNARA_API_SERVICE_NOT_AVAILABLE error despite cynara service being up
and running.
Now this is avoided by not checking on the client side if connection is
up just after connecting.
Change-Id: If698c5b7c76e1670edbf08882e1ed813ca38e197
createSocket();
- ConnectionStatus status = connectSocket();
- if (status != ConnectionStatus::CONNECTION_SUCCEEDED)
- return status;
-
- return isConnected() ? ConnectionStatus::CONNECTION_SUCCEEDED
- : ConnectionStatus::CONNECTION_FAILED;
+ return connectSocket();
}
Socket::ConnectionStatus Socket::completeConnection(void) {