X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Finspircd_namedpipe.cpp;h=76d16037bf721bb51fe1e9286fc2b6fefa2e440d;hb=23b0ee51ed995673949540ce8bb79ff3de06cef3;hp=93d7c423a1cbeb7690bebbf8674b7e9d23e72fd4;hpb=1db1a40c0921d8e0520aa083a0cad470abb2033d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/inspircd_namedpipe.cpp b/win/inspircd_namedpipe.cpp index 93d7c423a..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->Start(thread); + thread = new IPCThread(); + ServerInstance->Threads->Start(thread); } void IPC::Check()