Fix *Network::isConnected().

As m_enabled is changed accordingly to the modem current mode, it's not valid to use it for network connexion status.
This commit is contained in:
Daniel Caujolle-Bert 2021-03-23 22:32:36 +01:00
parent d26f3ea567
commit b5420fef15
No known key found for this signature in database
GPG key ID: 51AED7171EC00614
6 changed files with 6 additions and 6 deletions

View file

@ -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()