Skip to content

Commit

Permalink
Updating accAPI.cpp to include fixes for multiple uda server connecti…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
jholloc committed Dec 4, 2023
1 parent b107de8 commit 107fba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/client/accAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ void putIdamServer(const char* host, int port)
void putIdamServerHost(const char* host)
{
ENVIRONMENT* environment = getIdamClientEnvironment();
std::string old_host = host;
std::string old_host = environment->server_host;
strcpy(environment->server_host, host); // UDA server's host name or IP address
if (old_host != host) {
environment->server_reconnect = 1; // Create a new Server instance
Expand All @@ -701,7 +701,7 @@ void putIdamServerHost(const char* host)
void putIdamServerPort(int port)
{
ENVIRONMENT* environment = getIdamClientEnvironment();
int old_port = port;
int old_port = environment->server_port;
environment->server_port = port; // UDA server service port number
if (old_port != port) {
environment->server_reconnect = 1; // Create a new Server instance
Expand Down

0 comments on commit 107fba9

Please sign in to comment.