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

This commit is contained in:
zzz
2014-05-18 23:24:03 +00:00
parent d1bd893a7b
commit 4167cd955b

View File

@ -72,6 +72,9 @@ public class ConfigServiceHandler extends FormHandler {
ContextHelper.getContext(null).router().killKeys(); ContextHelper.getContext(null).router().killKeys();
if (_tellWrapper) { if (_tellWrapper) {
int wait = WAIT; int wait = WAIT;
// getProperties() not available on old wrappers,
// TODO find out what version and test
try {
Properties props = WrapperManager.getProperties(); Properties props = WrapperManager.getProperties();
String tmout = props.getProperty("wrapper.jvm_exit.timeout"); String tmout = props.getProperty("wrapper.jvm_exit.timeout");
if (tmout != null) { if (tmout != null) {
@ -81,6 +84,7 @@ public class ConfigServiceHandler extends FormHandler {
wait = cwait; wait = cwait;
} catch (NumberFormatException nfe) {} } catch (NumberFormatException nfe) {}
} }
} catch (Throwable t) {}
WrapperManager.signalStopping(wait); WrapperManager.signalStopping(wait);
} }
} catch (Throwable t) { } catch (Throwable t) {