Skip to content
Snippets Groups Projects
Commit 7a962857 authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

more cleaning up

parent 73b57203
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,6 @@ public class AppStarter extends Thread {
}
if(doUpdate.get()){
Server.tomcatLauncher.stopTomcat();
LibraryLoader.classLoader.destroy();
//This will trigger a force reload of the lib.
LibraryLoader.loadlibs(System.getProperty("user.dir"), AppStarter.class);
server = ServerLoader.loadServer(appUpdater, Integer.toString(port), serverCertificate, serverPrivateKey);
......
......@@ -77,7 +77,7 @@ public class Server {
}
public void main(String[] args) {
public static void main(String[] args) {
//Start tomcat.
switch (args.length) {
case 0:
......
......@@ -125,9 +125,7 @@ public class TomcatLauncher {
synchronized (tomcat) {
certificateAuthority.shutdownThreads();
tomcat.stop();
context.destroy();
tomcat.destroy();
LibraryLoader.classLoader.destroy();
}
} catch (Exception e) {
log.info("Failed to stop tomcat server with error {}", e.getMessage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment