From 33ad3deaee06df288731064aa0663cb2806ebea0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 21 Mar 2014 13:46:55 -0700 Subject: Builds with new Path code. --- node/SocketManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node/SocketManager.cpp') 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 >::iterator s(_tcpSockets.begin());s!=_tcpSockets.end();++s`) { - FD_CLR((*s)->_sock,&_readfds); - FD_CLR((*s)->_sock,&_writefds); + for(std::map< InetAddress,SharedPtr >::iterator s(_tcpSockets.begin());s!=_tcpSockets.end();++s) { + FD_CLR(s->second->_sock,&_readfds); + FD_CLR(s->second->_sock,&_writefds); } _fdSetLock.unlock(); _tcpSockets.clear(); -- cgit v1.2.3