forked from I2P_Developers/i2p.i2p
dont go into an infinite loop if we shut down before the log manager was fully created
(since the appContext creates a log manager if one doesn't exist, and that create will fail if we're shutting down, and it'll create a log manager to log the fact that its failing, etc)
This commit is contained in:
@ -102,7 +102,11 @@ public class LogManager {
|
||||
t.setName("LogWriter");
|
||||
t.setDaemon(true);
|
||||
t.start();
|
||||
try {
|
||||
Runtime.getRuntime().addShutdownHook(new ShutdownHook());
|
||||
} catch (IllegalStateException ise) {
|
||||
// shutdown in progress, fsck it
|
||||
}
|
||||
//System.out.println("Created logManager " + this + " with context: " + context);
|
||||
}
|
||||
private LogManager() {}
|
||||
|
Reference in New Issue
Block a user