forked from I2P_Developers/i2p.i2p
* Shutdown:
- Cancel our JVM shutdown hook when shutting down
- Run a spinner task so shutdown always completes
- exit() instead of halt() so other JVM shutdown hooks run
- Prevent duplicate wrapper notifier hooks
- Notify the wrapper twice, once for stopping and once for stopped
This commit is contained in:
@@ -298,7 +298,7 @@ public class ConfigNetHandler extends FormHandler {
|
||||
private void hiddenSwitch() {
|
||||
// Full restart required to generate new keys
|
||||
// FIXME don't call wrapper if not present, only rekey
|
||||
_context.addShutdownTask(new ConfigServiceHandler.UpdateWrapperManagerAndRekeyTask(Router.EXIT_GRACEFUL_RESTART));
|
||||
ConfigServiceHandler.registerWrapperNotifier(_context, Router.EXIT_GRACEFUL_RESTART, false);
|
||||
_context.router().shutdownGracefully(Router.EXIT_GRACEFUL_RESTART);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user