summaryrefslogtreecommitdiff
path: root/node/SocketManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/SocketManager.cpp')
-rw-r--r--node/SocketManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/SocketManager.cpp b/node/SocketManager.cpp
index a977a546..dc3e1a04 100644
--- a/node/SocketManager.cpp
+++ b/node/SocketManager.cpp
@@ -577,14 +577,14 @@ void SocketManager::whack()
_whackSendPipe_m.unlock();
}
-void closeTcpSockets()
+void SocketManager::closeTcpSockets()
{
{
Mutex::Lock _l2(_tcpSockets_m);
_fdSetLock.lock();
- for(std::map< InetAddress,SharedPtr<Socket> >::iterator s(_tcpSockets.begin());s!=_tcpSockets.end();++s`) {
- FD_CLR((*s)->_sock,&_readfds);
- FD_CLR((*s)->_sock,&_writefds);
+ for(std::map< InetAddress,SharedPtr<Socket> >::iterator s(_tcpSockets.begin());s!=_tcpSockets.end();++s) {
+ FD_CLR(s->second->_sock,&_readfds);
+ FD_CLR(s->second->_sock,&_writefds);
}
_fdSetLock.unlock();
_tcpSockets.clear();