while (run) {
try {
if (workList.isEmpty()) {
Thread.sleep(SLEEP_TIME);
} else {
PasswordResults password = workList.remove();
finder.analyze(password);
doneList.add(password);
}
} catch (Exception ex) {
Logger.getLogger(FinderThread.class.getName()).log(Level.SEVERE, null, ex);