diff --git a/src/cprotocol.cpp b/src/cprotocol.cpp index ece157e..66f6ade 100644 --- a/src/cprotocol.cpp +++ b/src/cprotocol.cpp @@ -96,13 +96,13 @@ bool CProtocol::Initialize(const char *type, const uint16 port, const bool has_i } #endif - // start thread; + std::cout << "Initializing protocol on port " << port << std::endl; try { m_Future = std::async(std::launch::async, &CProtocol::Thread, this); } catch (const std::exception &e) { - std::cerr << "Could not start thread: " << e.what() << std::endl; + std::cerr << "Could not start protocol on port " << port << ": " << e.what() << std::endl; m_Socket4.Close(); m_Socket6.Close(); return false; diff --git a/src/cprotocols.cpp b/src/cprotocols.cpp index 4231ee9..362fc4f 100644 --- a/src/cprotocols.cpp +++ b/src/cprotocols.cpp @@ -75,7 +75,7 @@ bool CProtocols::Init(void) return false; m_Protocols.emplace_back(std::unique_ptr(new CYsfProtocol)); - if (! m_Protocols.back()->Initialize("YSF", YSF_PORT, DMR_IPV4, DMR_IPV6)) + if (! m_Protocols.back()->Initialize("YSF", YSF_PORT, YSF_IPV4, YSF_IPV6)) return false; m_Protocols.emplace_back(std::unique_ptr(new CXlxProtocol));