#1248 Fix thread pool regression
Merge pull request #1248 from jroper/1248-thread-pools

Fix thread pools regression