diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-10-06 16:47:50 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-10-06 16:47:50 +0200 |
| commit | 1d24443562e3d136d8b98b5c45760fddaed9e5bb (patch) | |
| tree | 74630b779c58b442e14e0d555aac7fbdb47abbc4 | |
| parent | d407d528d1f1e8916799f75d4548fa77286f569e (diff) | |
Fix built-in shutdown script function.
| -rw-r--r-- | src/main/resources/textFiles/consoleScript.javascript.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/resources/textFiles/consoleScript.javascript.txt b/src/main/resources/textFiles/consoleScript.javascript.txt index ab61c87..4775a71 100644 --- a/src/main/resources/textFiles/consoleScript.javascript.txt +++ b/src/main/resources/textFiles/consoleScript.javascript.txt @@ -14,8 +14,5 @@ function version() { print("Modules loaded: "+Gateway.getModuleManager().getModuleVersions()); } function shutdown() { - if (com.c2kernel.process.AbstractMain.runningAsWrapper) - org.tanukisoftware.wrapper.WrapperManager.stop(0); - else - com.c2kernel.process.StandardClient.close(); + com.c2kernel.process.AbstractMain.shutdown(0); } |
