protocol init msg

pull/1/head
Tom Early 5 years ago
parent f87f872524
commit 1501691d68

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

@ -75,7 +75,7 @@ bool CProtocols::Init(void)
return false;
m_Protocols.emplace_back(std::unique_ptr<CYsfProtocol>(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<CXlxProtocol>(new CXlxProtocol));

Loading…
Cancel
Save

Powered by TurnKey Linux.