I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4167cd95 authored by zzz's avatar zzz
Browse files

Console: Cheap workaround for old wrappers (ticket #1285)

parent d1bd893a
No related branches found
No related tags found
No related merge requests found
......@@ -72,15 +72,19 @@ public class ConfigServiceHandler extends FormHandler {
ContextHelper.getContext(null).router().killKeys();
if (_tellWrapper) {
int wait = WAIT;
Properties props = WrapperManager.getProperties();
String tmout = props.getProperty("wrapper.jvm_exit.timeout");
if (tmout != null) {
try {
int cwait = Integer.parseInt(tmout) * 1000;
if (cwait > wait)
wait = cwait;
} catch (NumberFormatException nfe) {}
}
// getProperties() not available on old wrappers,
// TODO find out what version and test
try {
Properties props = WrapperManager.getProperties();
String tmout = props.getProperty("wrapper.jvm_exit.timeout");
if (tmout != null) {
try {
int cwait = Integer.parseInt(tmout) * 1000;
if (cwait > wait)
wait = cwait;
} catch (NumberFormatException nfe) {}
}
} catch (Throwable t) {}
WrapperManager.signalStopping(wait);
}
} catch (Throwable t) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment