--- innwebd/innd.cpp 2004/07/03 05:30:04 1.4 +++ innwebd/innd.cpp 2004/07/03 13:56:04 1.5 @@ -33,17 +33,24 @@ int innd::Accept(void) { CString out,cmd; char temp[256]; + HANDLE hThreadCurrent; try { + hThreadCurrent = GetCurrentThread(); + out.Format("200 %s ready.",App_common::GetVersion()); this->s_send(out); while(!this->thread_terminate) { + this->GetParentThread()->GetThreadPool()->SetThreadStatus(hThreadCurrent,thread_pool::S_WAITING); + if (this->s_receive(out) == 0) //Connection closed break; out.Trim(); + this->GetParentThread()->GetThreadPool()->SetThreadStatus(hThreadCurrent,thread_pool::S_WORKING); + syslog << logfile::log_head << "Cmd: " << out << endl; if (sscanf(out,"%20s",temp) ==1)