This commit is contained in:
carbotaniuman 2020-06-22 10:51:09 -05:00
parent 79e45eed4c
commit 2b2727c4e8

View file

@ -268,7 +268,6 @@ class MangaDexClient(private val clientSettings: ClientSettings) {
this.state = GracefulShutdown(state, nextState = Shutdown) { this.state = GracefulShutdown(state, nextState = Shutdown) {
latch.countDown() latch.countDown()
} }
latch.await()
} else if (state is GracefulShutdown) { } else if (state is GracefulShutdown) {
this.state = state.copy(nextState = Shutdown) { this.state = state.copy(nextState = Shutdown) {
latch.countDown() latch.countDown()