From 81b30bdcd2c789cb8b6cfd2f105325c3746fb1f1 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 21 Mar 2018 20:12:08 +0000 Subject: [PATCH] Add extra warning if unable to re-open the NXCore link. --- NXDNReflector/NXDNReflector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NXDNReflector/NXDNReflector.cpp b/NXDNReflector/NXDNReflector.cpp index 817728e..08712e9 100644 --- a/NXDNReflector/NXDNReflector.cpp +++ b/NXDNReflector/NXDNReflector.cpp @@ -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) {