}\r
\r
tempval="";\r
- Option::Instance()->Get("StartHHTP",tempval);\r
+ Option::Instance()->Get("StartHTTP",tempval);\r
if(tempval=="true")\r
{\r
m_starthttp=true;\r
\r
void ThreadController::RestartThreads()\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::RestartThreads restarting threads.");\r
ShutdownThreads();\r
StartThreads();\r
}\r
{\r
if(m_freenetthread)\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::ShutdownFreenetThread shutting down Freenet thread.");\r
m_freenetthread->Cancel();\r
m_freenetthread->Join();\r
delete m_freenetthread;\r
{\r
if(m_httpthread)\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::ShutdownHTTPThread shutting down HTTP thread.");\r
m_httpthread->Cancel();\r
m_httpthread->Join();\r
delete m_httpthread;\r
{\r
if(m_nntpthread)\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::ShutdownNNTPThread shutting down NNTP thread.");\r
m_nntpthread->Cancel();\r
m_nntpthread->Join();\r
delete m_nntpthread;\r
\r
void ThreadController::StartFreenetThread()\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::StartFreenetThread starting Freenet thread.");\r
m_freenetthread=new PThread::Thread(new FreenetMasterThread());\r
}\r
\r
void ThreadController::StartHTTPThread()\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::StartHTTPThread starting HTTP thread.");\r
m_httpthread=new PThread::Thread(new HTTPThread());\r
}\r
\r
void ThreadController::StartNNTPThread()\r
{\r
+ m_log->WriteLog(LogFile::LOGLEVEL_INFO,"ThreadController::StartNNTPThread starting NNTP thread.");\r
m_nntpthread=new PThread::Thread(new NNTPListener());\r
}\r
\r