mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-11-17 00:22:32 +01:00
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 New Issue
Block a user