Commits

Erik Hetzner  committed 26eb9cf

catch NoSuchElementException when cleaning up

  • Participants
  • Parent commits bcf0636

Comments (0)

Files changed (1)

File src/main/java/org/cdlib/mrt/queue/DistributedQueue.java

             }
         };
 
-        handler.doit(false);
+        try {
+            handler.doit(false);
+        } catch (NoSuchElementException ex) {
+            /* finished */
+        }
     }
         
     public static class Ignorer implements Watcher {