Add extra warning if unable to re-open the NXCore link.

This commit is contained in:
Jonathan Naylor 2018-03-21 20:12:08 +00:00
parent e14ecebb62
commit 81b30bdcd2
1 changed files with 3 additions and 1 deletions

View File

@ -252,7 +252,9 @@ void CNXDNReflector::run()
if (m_nxCoreNetwork == NULL) {
std::string callsign = lookup->find(srcId);
LogMessage("NXCore link enabled by %s at %s", callsign.c_str(), current->m_callsign.c_str());
openNXCore();
bool ok = openNXCore();
if (!ok)
LogWarning("Unable to open the NXCore link");
}
} else if (nxCoreTGDisable != 0U && grp && dstId == nxCoreTGDisable) {
if (m_nxCoreNetwork != NULL) {