Browse Source

fix #790 ignore exceptions

Shinsuke Sugaya 8 years ago
parent
commit
d2dd3ae427

+ 5 - 1
src/main/java/org/codelibs/fess/thumbnail/impl/WebDriverGenerator.java

@@ -109,7 +109,11 @@ public class WebDriverGenerator extends BaseThumbnailGenerator {
     public void destroy() {
     public void destroy() {
         if (webDriver != null) {
         if (webDriver != null) {
             synchronized (this) {
             synchronized (this) {
-                webDriver.quit();
+                try {
+                    webDriver.quit();
+                } catch (Throwable t) {
+                    logger.debug("Failed to quit webDriver.", t);
+                }
                 webDriver = null;
                 webDriver = null;
             }
             }
         }
         }