From 9afe75976cc7f3c2c71d358337b8b2fa741c59a6 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sat, 16 Aug 2025 09:15:23 +0200 Subject: [PATCH] fixed wrong port number in log --- Common/DCSProtocolHandlerPool.cpp | 2 +- Common/DExtraProtocolHandlerPool.cpp | 2 +- Common/DPlusProtocolHandlerPool.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/DCSProtocolHandlerPool.cpp b/Common/DCSProtocolHandlerPool.cpp index cc00e43..fd10f0f 100644 --- a/Common/DCSProtocolHandlerPool.cpp +++ b/Common/DCSProtocolHandlerPool.cpp @@ -84,7 +84,7 @@ void CDCSProtocolHandlerPool::release(CDCSProtocolHandler *handler) handler->close(); delete handler ; m_index = m_pool.end(); // since we removed an element, m_index is ouot of order, just move it back to the end - CLog::logInfo("Released DCS ProtocolHandler on port %u.\n", it->first); + CLog::logInfo("Released DCS ProtocolHandler on port %u.\n", handler->getPort()); return; } diff --git a/Common/DExtraProtocolHandlerPool.cpp b/Common/DExtraProtocolHandlerPool.cpp index c356858..c726259 100644 --- a/Common/DExtraProtocolHandlerPool.cpp +++ b/Common/DExtraProtocolHandlerPool.cpp @@ -84,7 +84,7 @@ void CDExtraProtocolHandlerPool::release(CDExtraProtocolHandler *handler) handler->close(); delete handler; m_index = m_pool.end(); // m_index might be out of order, reset it - CLog::logInfo("Releasing DExtra Protocol Handler on port %u.\n", it->first); + CLog::logInfo("Releasing DExtra Protocol Handler on port %u.\n", handler->getPort()); return; } diff --git a/Common/DPlusProtocolHandlerPool.cpp b/Common/DPlusProtocolHandlerPool.cpp index b9ef667..1b62276 100644 --- a/Common/DPlusProtocolHandlerPool.cpp +++ b/Common/DPlusProtocolHandlerPool.cpp @@ -85,7 +85,7 @@ void CDPlusProtocolHandlerPool::release(CDPlusProtocolHandler *handler) handler->close(); delete handler; m_index = m_pool.end(); // m_index might be ut of order so reset it - CLog::logInfo("Releasing DPlus ProtocolHandler on port %u.\n", it->first); + CLog::logInfo("Releasing DPlus ProtocolHandler on port %u.\n", handler->getPort()); return; } }