* i2psnark: Don't let connection problem crash the DirMonitor (ticket #495)

This commit is contained in:
zzz
2011-07-20 14:47:30 +00:00
parent 56d8b72b07
commit 164f6603fd

View File

@ -1102,8 +1102,12 @@ public class SnarkManager implements Snark.CompleteListener {
_log.error("Error in the DirectoryMonitor", e);
}
if (doMagnets) {
try {
addMagnets();
doMagnets = false;
} catch (Exception e) {
_log.error("Error in the DirectoryMonitor", e);
}
}
try { Thread.sleep(60*1000); } catch (InterruptedException ie) {}
}