Skip to content

Commit

Permalink
reorder stop order
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukaihan committed Oct 31, 2024
1 parent b56bc29 commit 9b46edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/flag/FlagConfigUpdater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@ internal class FlagConfigFallbackRetryWrapper(
override fun stop() {
lock.withLock {
isRunning = false
fallbackStop()
retryTask?.cancel(true)
fallbackStop()
mainUpdater.stop()
}
}

override fun shutdown() {
lock.withLock {
isRunning = false
fallbackStop()
retryTask?.cancel(true)
fallbackStop()
mainUpdater.shutdown()
fallbackUpdater?.shutdown()
}
Expand Down

0 comments on commit 9b46edc

Please sign in to comment.