Skip to content

Commit

Permalink
fixed incorrect shutdown sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Nov 29, 2011
1 parent 5ed7c46 commit bfa5d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ class InlineExplodedTomcatServer extends TomcatServer {
}

void stop() {
ShutdownOperations.runOperations()
tomcat.stop()
tomcat.destroy()
ShutdownOperations.runOperations()
GrailsPluginUtils.clearCaches()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ public void closeWebApplicationContext(ServletContext servletContext) {
ConfigurableApplicationContext parent = ctx != null ? (ConfigurableApplicationContext) ctx.getParent() : null;

try {
super.closeWebApplicationContext(servletContext);
} finally {
ShutdownOperations.runOperations();
} finally {
super.closeWebApplicationContext(servletContext);
}

if (parent != null) {
Expand Down

0 comments on commit bfa5d20

Please sign in to comment.