possible bux fix for freezing?
Fixes thread freezing bug.
Merge pull request #122 from dbeckwith/threadTest

Thread test