add timeout to check hash
Merge pull request #336 from just-boris/master

add timeout to check hash