Merge pull request #421 from hylkevds/shutdownFix
Fixed executor not shutting down.
This commit is contained in:
@@ -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.");
|
LOG.info("Moquette server has been stopped.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user