Fix state transition bug
This commit is contained in:
parent
537ef30e88
commit
22fc42e7bc
|
@ -190,12 +190,12 @@ class MangaDexClient(private val clientSettings: ClientSettings) {
|
|||
LOGGER.info("Shutting down server as hourly bandwidth limit reached")
|
||||
}
|
||||
this.state = GracefulShutdown(lastRunning = state)
|
||||
} else {
|
||||
pingControl()
|
||||
}
|
||||
|
||||
pingControl()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
LOGGER.warn("Main loop failed", e)
|
||||
LOGGER.warn("Graceful shutdown checker failed", e)
|
||||
}
|
||||
}, 45, 45, TimeUnit.SECONDS)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue