socket initialization and other fixes

This commit is contained in:
Guenter Obiltschnig
2009-04-14 11:02:21 +00:00
parent 457e24748d
commit 9cb9229a4e
17 changed files with 92 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
//
// TCPServerDispatcher.cpp
//
// $Id: //poco/Main/Net/src/TCPServerDispatcher.cpp#10 $
// $Id: //poco/Main/Net/src/TCPServerDispatcher.cpp#11 $
//
// Library: Net
// Package: TCPServer
@@ -139,7 +139,7 @@ void TCPServerDispatcher::run()
}
FastMutex::ScopedLock lock(_mutex);
if (_stopped || _currentThreads > 1 && _queue.empty())
if (_stopped || (_currentThreads > 1 && _queue.empty()))
{
--_currentThreads;
break;