mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-20 12:46:00 +00:00
This change ensures that close() is always called by moving sync() to a separate try-block. Often when a BDB error occurs it causes all subsequent operations including sync() also throw exceptions. Since we were calling sync() and close() in the same try-block, sync() throwing would prevent close() from ever being called and thus leak file handles and BDB worker threads.