--- innwebd/base.cpp 2004/12/01 08:31:52 1.11 +++ innwebd/base.cpp 2005/02/08 05:53:27 1.12 @@ -477,7 +477,7 @@ int base::begin(void) unsigned int time_wait = 0; if (!this->IsShutdown()) - return 1; + return 0; if (hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)base::Thread,(LPVOID)this,0,&ulThreadId)) { @@ -494,7 +494,7 @@ int base::begin(void) { Sleep(100); time_wait += 100; - if (time_wait > 10000) //Wait 10 seconds + if (time_wait > 30000) //Wait 30 seconds { syslog << logfile::log_head << "Module timeout in begin()" << endl; this->end(); @@ -516,7 +516,7 @@ DWORD base::Thread(LPVOID pParam) p->ulMainThreadId = GetCurrentThreadId(); - if (p->GetParentThread()->GetThreadPool()->AddThread(GetCurrentThreadId(), CLOCKS_PER_SEC * 30) != 0) + if (p->GetParentThread()->GetThreadPool()->AddThread(GetCurrentThreadId(), CLOCKS_PER_SEC * 60) != 0) { syslog << logfile::log_head << "Register thread ... Failed" << endl; }