Skip to content

Commit

Permalink
调整JettyServer停止时删除文件的动作,防止部分操作系统调用关闭进程操作无效导致无法停止进程的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
riveryang committed Jul 26, 2016
1 parent cab2e80 commit 15d2297
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ protected void stopServer() {
}

throw new JettyServerException("Stop Server error: " + e.getMessage());
} finally {
final File file = new File(JETTY_PID_FILE);
if (file.exists()) {
file.delete();
}
}
}

Expand Down

0 comments on commit 15d2297

Please sign in to comment.