X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_namedpipe.cpp;h=76d16037bf721bb51fe1e9286fc2b6fefa2e440d;hb=23b0ee51ed995673949540ce8bb79ff3de06cef3;hp=36724366010575c741a3cc7e2702c8562e735f26;hpb=1fd22793d17a5e8e385d86d2dbd2276b1876680a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_namedpipe.cpp b/win/inspircd_namedpipe.cpp index 367243660..76d16037b 100644 --- a/win/inspircd_namedpipe.cpp +++ b/win/inspircd_namedpipe.cpp @@ -6,7 +6,7 @@ #include -IPCThread::IPCThread(InspIRCd* Instance) : Thread(), ServerInstance(Instance) +IPCThread::IPCThread() { if (!initwmi()) ServerInstance->Logs->Log("IPC", DEBUG, "Could not initialise WMI. CPU percantage reports will not be available."); @@ -127,11 +127,11 @@ void IPCThread::SetResult(int newresult) } -IPC::IPC(InspIRCd* Srv) : ServerInstance(Srv) +IPC::IPC() { /* The IPC pipe is threaded */ - thread = new IPCThread(Srv); - Srv->Threads->Create(thread); + thread = new IPCThread(); + ServerInstance->Threads->Start(thread); } void IPC::Check()