* Shutdown:

- Stop I2PThread from starting a new App context at shutdown
    - Stop LogWriter from starting a new App context at shutdown
    - Have router kill any leftover App context at startup
This commit is contained in:
zzz
2011-06-17 19:51:17 +00:00
parent 9ad8f35bca
commit 95c88881d9
4 changed files with 22 additions and 6 deletions

View File

@@ -191,6 +191,11 @@ public class Router {
// Save this in the context for the logger and apps that need it
envProps.setProperty("i2p.systemTimeZone", originalTimeZoneID);
// Make darn sure we don't have a leftover I2PAppContext in the same JVM
// e.g. on Android - see finalShutdown() also
if (RouterContext.getContexts().isEmpty())
RouterContext.killGlobalContext();
// The important thing that happens here is the directory paths are set and created
// i2p.dir.router defaults to i2p.dir.config
// i2p.dir.app defaults to i2p.dir.router