Skip to content

Commit

Permalink
ESDK-3423 Fixed the connection recovery for EDP connections when the …
Browse files Browse the repository at this point in the history
…host and port are specified.
  • Loading branch information
soranat committed Sep 25, 2019
1 parent 3e25ded commit 6e4d2fd
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1368,18 +1368,21 @@ Channel reconnectEDP(Error error)
// if done getting the auth token and service discovery
if (_state == State.EDP_RT_DONE)
{
if (_watchlist != null)
if(Reactor.requestServiceDiscovery(reactorConnectInfo))
{
if (verifyAndCopyServiceDiscoveryData(_loginRequestForEDP, errorInfo) != ReactorReturnCodes.SUCCESS)
{
error.text(errorInfo.error().text());
return null;
}
}
else if (_watchlist == null && verifyAndCopyServiceDiscoveryData(_loginRequestForEDP, errorInfo) != ReactorReturnCodes.SUCCESS)
{
error.text(errorInfo.error().text());
return null;
if (_watchlist != null)
{
if (verifyAndCopyServiceDiscoveryData(_loginRequestForEDP, errorInfo) != ReactorReturnCodes.SUCCESS)
{
error.text(errorInfo.error().text());
return null;
}
}
else if (_watchlist == null && verifyAndCopyServiceDiscoveryData(_loginRequestForEDP, errorInfo) != ReactorReturnCodes.SUCCESS)
{
error.text(errorInfo.error().text());
return null;
}
}

return reconnect(reactorConnectInfo, error);
Expand Down

0 comments on commit 6e4d2fd

Please sign in to comment.