Skip to content

Commit

Permalink
Merge pull request #690 from f1rmb/f1rmb_fix_network_isConnected
Browse files Browse the repository at this point in the history
Fix *Network::isConnected().
  • Loading branch information
g4klx authored Mar 23, 2021
2 parents d26f3ea + b5420fe commit 6b43bce
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DMRGatewayNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ bool CDMRGatewayNetwork::writeTalkerAlias(unsigned int id, unsigned char type, c

bool CDMRGatewayNetwork::isConnected() const
{
return (m_enabled && (m_addrLen != 0));
return (m_addrLen != 0);
}

void CDMRGatewayNetwork::close()
Expand Down
2 changes: 1 addition & 1 deletion DStarNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void CDStarNetwork::reset()

bool CDStarNetwork::isConnected() const
{
return (m_enabled && (m_addrLen != 0));
return (m_addrLen != 0);
}

void CDStarNetwork::close()
Expand Down
2 changes: 1 addition & 1 deletion NXDNIcomNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void CNXDNIcomNetwork::reset()

bool CNXDNIcomNetwork::isConnected() const
{
return (m_enabled && (m_addrLen != 0));
return (m_addrLen != 0);
}

void CNXDNIcomNetwork::close()
Expand Down
2 changes: 1 addition & 1 deletion NXDNKenwoodNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ void CNXDNKenwoodNetwork::reset()

bool CNXDNKenwoodNetwork::isConnected() const
{
return (m_enabled && (m_rtcpAddrLen != 0U) && (m_rtpAddrLen != 0U));
return ((m_rtcpAddrLen != 0U) && (m_rtpAddrLen != 0U));
}

void CNXDNKenwoodNetwork::close()
Expand Down
2 changes: 1 addition & 1 deletion P25Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ unsigned int CP25Network::read(unsigned char* data, unsigned int length)

bool CP25Network::isConnected() const
{
return (m_enabled && (m_addrLen != 0));
return (m_addrLen != 0);
}

void CP25Network::close()
Expand Down
2 changes: 1 addition & 1 deletion YSFNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void CYSFNetwork::reset()

bool CYSFNetwork::isConnected() const
{
return (m_enabled && (m_addrLen != 0));
return (m_addrLen != 0);
}

void CYSFNetwork::close()
Expand Down

0 comments on commit 6b43bce

Please sign in to comment.