From 40cb30b6a576ecdcf446377b755ed70a87b9be28 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 20 Aug 2013 19:29:29 +0200 Subject: Small Linux fixes. --- source/OSSupport/ListenThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/OSSupport/ListenThread.cpp') diff --git a/source/OSSupport/ListenThread.cpp b/source/OSSupport/ListenThread.cpp index c586227df..0890aabc8 100644 --- a/source/OSSupport/ListenThread.cpp +++ b/source/OSSupport/ListenThread.cpp @@ -80,7 +80,7 @@ void cListenThread::Stop(void) super::Wait(); // Close all the listening sockets: - for (cSockets::iterator itr = m_Sockets.begin(), end = m_Sockets.end(); itr != end; ++itr) + for (cSockets::iterator itr = m_Sockets.begin() + 1, end = m_Sockets.end(); itr != end; ++itr) { itr->CloseSocket(); } // for itr - m_Sockets[] -- cgit v1.2.3