Skip to content

Commit

Permalink
fixed tryToConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Nov 21, 2023
1 parent c5110b6 commit afa3da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wallet/core/node_network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ namespace beam::wallet
}
else if (m_attemptToConnect == MAX_ATTEMPT_TO_CONNECT)
{
m_attemptToConnect = 0;
proto::NodeConnection::DisconnectReason reason;
reason.m_Type = proto::NodeConnection::DisconnectReason::Io;
reason.m_IoError = io::EC_HOST_RESOLVED_ERROR;
Expand Down Expand Up @@ -116,6 +117,7 @@ namespace beam::wallet

void NodeNetwork::setNodeAddress(const std::string& nodeAddr)
{
m_attemptToConnect = 0;
Disconnect();
m_nodeAddress = nodeAddr;
tryToConnect();
Expand Down

0 comments on commit afa3da9

Please sign in to comment.