mirror of
https://github.com/pocoproject/poco.git
synced 2026-01-12 00:04:54 +08:00
fix(Data): Poco::Data::SessionPool::dead() must check idle, not active, sessions #4923
This commit is contained in:
@@ -141,8 +141,8 @@ int SessionPool::dead()
|
||||
int count = 0;
|
||||
|
||||
Poco::Mutex::ScopedLock lock(_mutex);
|
||||
SessionList::iterator it = _activeSessions.begin();
|
||||
SessionList::iterator itEnd = _activeSessions.end();
|
||||
SessionList::iterator it = _idleSessions.begin();
|
||||
SessionList::iterator itEnd = _idleSessions.end();
|
||||
for (; it != itEnd; ++it)
|
||||
{
|
||||
if (!(*it)->session()->isGood())
|
||||
|
||||
Reference in New Issue
Block a user