1
0
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:
carbotaniuman 2020-06-27 12:26:29 -05:00
parent 537ef30e88
commit 22fc42e7bc

View File

@ -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)
}