mirror of
https://github.com/anope/anope.git
synced 2026-06-29 01:46:38 +02:00
Made Anope able to process normally when disconnected from the uplink and not sleep(), enable usage of non-blocking connect() and default all sockets to non blocking mode. Some cleanup to m_ssl and some cleanup to main.cpp.
This commit is contained in:
@@ -37,6 +37,8 @@ void SocketEngine::Init()
|
||||
|
||||
void SocketEngine::Shutdown()
|
||||
{
|
||||
Process();
|
||||
|
||||
for (std::map<int, Socket *>::const_iterator it = Sockets.begin(), it_end = Sockets.end(); it != it_end; ++it)
|
||||
delete it->second;
|
||||
Sockets.clear();
|
||||
|
||||
Reference in New Issue
Block a user