Skip to content

Commit

Permalink
rename "shutdown" to "finalize" so lucee will shutdown the service wh…
Browse files Browse the repository at this point in the history
…en gracefully stopping
  • Loading branch information
michaeloffner committed Dec 18, 2024
1 parent ce1e418 commit 5dc5381
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class LSPEndpointFactory {
private String cfcPath;
private Log log;

// TODO shutdown when the Lucee engine does shut down
public LSPEndpointFactory(Config config) throws IOException {
// setup config and utils
engine = CFMLEngineFactory.getInstance();
Expand Down Expand Up @@ -161,7 +160,8 @@ private String processMessage(String jsonMessage) {
}
}

public void shutdown() throws IOException {
@Override
public void finalize() throws IOException {
running = false;
if (executor != null) {
executor.shutdown();
Expand Down

0 comments on commit 5dc5381

Please sign in to comment.