mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00: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")
|
LOGGER.info("Shutting down server as hourly bandwidth limit reached")
|
||||||
}
|
}
|
||||||
this.state = GracefulShutdown(lastRunning = state)
|
this.state = GracefulShutdown(lastRunning = state)
|
||||||
|
} else {
|
||||||
|
pingControl()
|
||||||
}
|
}
|
||||||
|
|
||||||
pingControl()
|
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
LOGGER.warn("Main loop failed", e)
|
LOGGER.warn("Graceful shutdown checker failed", e)
|
||||||
}
|
}
|
||||||
}, 45, 45, TimeUnit.SECONDS)
|
}, 45, 45, TimeUnit.SECONDS)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue