Fixed executor not shutting down.

This commit is contained in:
Hylke van der Schaaf
2018-07-07 13:47:35 +02:00
parent 5e4c70edce
commit add5e8968e
@@ -255,7 +255,9 @@ public class Server {
}
}
scheduler.shutdown();
// calling shutdown() does not actually stop tasks that are not cancelled,
// and SessionsRepository does not stop its tasks. Thus shutdownNow().
scheduler.shutdownNow();
LOG.info("Moquette server has been stopped.");
}