minor: Fix daemon shutdown livelock
due to wrong minimal aliveness, daemon was in some situations livelocked in the last session state on shutdown.
This commit is contained in:
@@ -259,7 +259,7 @@ class CompileServiceImpl(
|
|||||||
CompileService.CallResult.Ok()
|
CompileService.CallResult.Ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun scheduleShutdown(graceful: Boolean): CompileService.CallResult<Boolean> = ifAlive(minAliveness = Aliveness.Alive) {
|
override fun scheduleShutdown(graceful: Boolean): CompileService.CallResult<Boolean> = ifAlive(minAliveness = Aliveness.LastSession, ignoreCompilerChanged = true) {
|
||||||
when {
|
when {
|
||||||
!graceful -> {
|
!graceful -> {
|
||||||
shutdownWithDelay()
|
shutdownWithDelay()
|
||||||
|
|||||||
Reference in New Issue
Block a user