moopless/stratum-mining-litecoin — pull request #37 by erundook (2013-07-14 10:45:36+00:00)
Title: Fix race condition when block is found and share record is not yet at th...

...e DB

I'm not sure sleep is a good solution for that, but it works.
Without it, I'm having an issue where on high load (> 500mh/s) some blocks aren't going into database.