diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-21 13:46:55 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-21 13:46:55 -0700 |
| commit | 33ad3deaee06df288731064aa0663cb2806ebea0 (patch) | |
| tree | a4ce002d3928dc3edb8a266149ad152533a89c5a /node/SocketManager.cpp | |
| parent | ba3f04deedb3a09e8683b2507b7c2176e87e3766 (diff) | |
| download | infinitytier-33ad3deaee06df288731064aa0663cb2806ebea0.tar.gz infinitytier-33ad3deaee06df288731064aa0663cb2806ebea0.zip | |
Builds with new Path code.
Diffstat (limited to 'node/SocketManager.cpp')
| -rw-r--r-- | node/SocketManager.cpp | 8 |
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(); |
