Bugfix: semaphore initialized twice.
Merge pull request #103 from glv2/patch-1

Bugfix: semaphore initialized twice (issue #102)