+ oops, corrected:)
This commit is contained in:
parent
9a9e5fb2e3
commit
2c5f723344
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ public:
|
|||
mutex::scoped_lock lock(mutex_);
|
||||
#endif
|
||||
typename ContType::iterator itr=unusedPool_.begin();
|
||||
for ( ;itr!=unusedPool_.end(); ++itr)
|
||||
while ( itr!=unusedPool_.end())
|
||||
{
|
||||
#ifdef MAPNIK_DEBUG
|
||||
std::clog<<"borrow "<<(*itr).get()<<"\n";
|
||||
|
@ -116,7 +116,7 @@ public:
|
|||
#ifdef MAPNIK_DEBUG
|
||||
std::clog<<"bad connection (erase)" << (*itr).get()<<"\n";
|
||||
#endif
|
||||
unusedPool_.erase(itr);
|
||||
itr=unusedPool_.erase(itr);
|
||||
}
|
||||
}
|
||||
if (usedPool_.size() < maxSize_)
|
||||
|
|
Loading…
Reference in a new issue