dotCMS/dotCMS — pull request #44 by dotjorgeu (2012-03-29 16:49:25+00:00)
Title: fixes #42 - wait for the index reqs to finish

using a semaphore.release every time one req ends
the we do semaphore.acquire(totalRequests) so we wait until all reqs finish