fixed resource check
Merge pull request #349 from zelgerj/master

fixed resource check for multithreaded usage