kstyrc / embedded-redis

Redis embedded server for Java integration testing
840 stars 368 forks source link

Shutdown thread pool in error path. #76

Open figgles opened 7 years ago

figgles commented 7 years ago

When there is an error, the thread pool is not correctly shut down. Because the "active" flag is still set to false, close() will not shutdown the pool. This fixes the issue by shutting down the thread pool if there was an error.