forked from I2P_Developers/i2p.i2p
2005-12-16 jrandom
* Moved I2PSnark from using Threads to I2PThreads, so we handle OOMs properly (thanks Complication!) * More guards in I2PSnark for zany behavior (I2PSession recon w/ skew, b0rking in the DirMonitor, etc)
This commit is contained in:
@ -372,7 +372,11 @@ public class SnarkManager implements Snark.CompleteListener {
|
||||
while (true) {
|
||||
File dir = getDataDir();
|
||||
_log.debug("Directory Monitor loop over " + dir.getAbsolutePath());
|
||||
monitorTorrents(dir);
|
||||
try {
|
||||
monitorTorrents(dir);
|
||||
} catch (Exception e) {
|
||||
_log.error("Error in the DirectoryMonitor", e);
|
||||
}
|
||||
try { Thread.sleep(60*1000); } catch (InterruptedException ie) {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user