diff options
author | Adam <Adam@anope.org> | 2010-08-15 01:45:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-15 01:45:38 -0400 |
commit | a950ed8cabfeca55c909f02412b1788bd386dcff (patch) | |
tree | cfa9a16c2385176490ea849f6a4041ee9456c8eb /src/sockets.cpp | |
parent | 4d0a1aaabd861bb7cd1e378bd1e600af1d34d5d2 (diff) |
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index b85255523..646ee261f 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -25,11 +25,18 @@ SocketEngineBase::SocketEngineBase() SocketEngineBase::~SocketEngineBase() { + for (std::map<int, Socket *>::const_iterator it = this->Sockets.begin(), it_end = this->Sockets.end(); it != it_end; ++it) + delete it->second; + this->Sockets.clear(); #ifdef _WIN32 WSACleanup(); #endif } +Socket::Socket() +{ +} + /** Constructor * @param nsock The socket * @param nIPv6 IPv6? |