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; } }