--- innwebd/base.cpp 2004/07/04 08:04:08 1.5 +++ innwebd/base.cpp 2004/07/04 22:49:03 1.6 @@ -463,14 +463,16 @@ int base::s_receive(CString& out_str, co int base::begin(void) { + HANDLE hThread; ULONG ulThreadId; unsigned int time_wait = 0; if (!this->IsShutdown()) return 1; - if (this->hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)base::Thread,(LPVOID)this,0,&ulThreadId)) + if (hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)base::Thread,(LPVOID)this,0,&ulThreadId)) { + CloseHandle(hThread); syslog << logfile::log_head << "Create thread ... OK" << endl; } else