lastudp
Tom Early 7 years ago
parent d20f576abc
commit b16367e412

@ -58,8 +58,8 @@ bool CDPlusAuthenticator::Process(std::map<std::string, std::string> &gwy_map, c
while (EAI_AGAIN == result) {
result = getaddrinfo(m_address.c_str(), NULL, &hints, &infoptr);
if (EAI_AGAIN == result) {
fprintf(stdout, "getaddrinfo not ready: please wait...");
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
fprintf(stdout, "getaddrinfo not ready: please wait...\n");
std::this_thread::sleep_for(std::chrono::seconds(5));
}
}
if (result) {

@ -10,8 +10,7 @@
#include <fcntl.h>
#include <errno.h>
IRCClient::IRCClient(IRCApplication *app, const std::string &update_channel, const std::string &hostName, unsigned int port, const std::string &callsign, const std::string &password,
const std::string &versionInfo, const std::string &localAddr)
IRCClient::IRCClient(IRCApplication *app, const std::string &update_channel, const std::string &hostName, unsigned int port, const std::string &callsign, const std::string &password, const std::string &versionInfo, const std::string &localAddr)
{
safeStringCopy(host_name, hostName.c_str(), sizeof host_name);

Loading…
Cancel
Save

Powered by TurnKey Linux.