Fix for race condition during scheduler registration(on demand) when there are multiple builds on queue
Merge pull request #70 from maselvaraj/master

Fix for race condition during scheduler registration when there are multiple builds on queue.

Fixes #43.