diff --git a/server/lurch.cpp b/server/lurch.cpp index 3cf064d9d..b59557960 100755 --- a/server/lurch.cpp +++ b/server/lurch.cpp @@ -83,9 +83,8 @@ bool TLurchServer::PingProcess(const wxString& strApp) if (nTimeOut > 2000) nTimeOut = 2000; wxIPV4address ipAddress; - ipAddress.AnyAddress(); + ipAddress.LocalHost(); ipAddress.Service(nPort); - wxSocketClient sSock(wxSOCKET_NOWAIT); sSock.Connect(ipAddress, false); if (sSock.WaitOnConnect(0, nTimeOut)) @@ -312,8 +311,8 @@ void TLurchServer::GenerateFile(wxString& strFilename) wxString strVer; strVer.Printf(wxT("%d.%d.%d"), v, t, p); AddTableRow(panel, wxT("Version"), strVer); - wxString strFreq; strFreq << m_PingTimer.GetInterval()/1000; - AddTableRow(panel, wxT("Ping Frequency"), strFreq); + wxString strFreq; strFreq << m_PingTimer.GetInterval()/1000; + AddTableRow(panel, wxT("Ping Frequency"), strFreq); html.Save(strFilename); } @@ -658,11 +657,11 @@ bool TLurchServer::Initialization() { for (size_t i = 0; i < nAuto; i++) StartProcess(arr[i]); - const int nFreq = GetConfigInt("PingFreq"); - if (nFreq > 0) - { - m_PingTimer.Start(nFreq * 1000); // sec to msec - m_Semaphore.Post(); // GREEN! + const int nFreq = GetConfigInt("PingFreq"); + if (nFreq > 0) + { + m_PingTimer.Start(nFreq * 1000); // sec to msec + m_Semaphore.Post(); // GREEN! } } return true;