Move WSACleanup() into IOCPEngine destructor, eliminating an "#ifdef WIN32" from inspircd.cpp

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7807 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-08-23 20:05:05 +00:00
parent 443b0f9645
commit 39ebb06a6a
2 changed files with 2 additions and 5 deletions

View File

@ -122,11 +122,6 @@ void InspIRCd::Cleanup()
/* Cleanup Server Names */
for(servernamelist::iterator itr = servernames.begin(); itr != servernames.end(); ++itr)
delete (*itr);
#ifdef WINDOWS
/* WSACleanup */
WSACleanup();
#endif
}
void InspIRCd::Restart(const std::string &reason)

View File

@ -37,7 +37,9 @@ IOCPEngine::IOCPEngine(InspIRCd * Instance) : SocketEngine(Instance)
IOCPEngine::~IOCPEngine()
{
/* Clean up winsock and close completion port */
CloseHandle(m_completionPort);
WSACleanup();
}
bool IOCPEngine::AddFd(EventHandler* eh)