Merge pull request #421 from hylkevds/shutdownFix

Fixed executor not shutting down.
This commit is contained in:
Andrea Selva
2018-07-19 17:29:15 +02:00
committed by GitHub
@@ -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.");
}