BrightcoveOS/Diamond — pull request #199 by bunjiboys (2012-12-06 21:51:26+00:00)
Title: Fixing double release of locks

There are currently a double release of locks in Handler.py, that causes an exception to be fired, and thus no more than the first metric of the batch is sent to the destination.

This pull requests changes to a simple lock, since we arent using any of the added functionality of threading.Condition, and checks the state of the lock in the finally block, before trying to release it a second time.