mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
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:
parent
443b0f9645
commit
39ebb06a6a
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user