* PRNG, LogWriter: Use I2PThread to catch OOM

This commit is contained in:
zzz
2012-10-02 12:38:05 +00:00
parent 83fe635438
commit 07b3c8a7b4
2 changed files with 4 additions and 3 deletions

View File

@@ -159,8 +159,8 @@ public class LogManager {
if (_writer != null)
return;
_writer = new LogWriter(this);
// NOT an I2PThread, as it contains logging and we end up with problems
Thread t = new Thread(_writer, "LogWriter");
// if you enable logging in I2PThread again, you MUST change this back to Thread
Thread t = new I2PThread(_writer, "LogWriter");
t.setDaemon(true);
t.start();
}