diff --git a/src/main/kotlin/flag/FlagConfigUpdater.kt b/src/main/kotlin/flag/FlagConfigUpdater.kt index 9687e71..0625e28 100644 --- a/src/main/kotlin/flag/FlagConfigUpdater.kt +++ b/src/main/kotlin/flag/FlagConfigUpdater.kt @@ -285,8 +285,8 @@ internal class FlagConfigFallbackRetryWrapper( override fun stop() { lock.withLock { isRunning = false - fallbackStop() retryTask?.cancel(true) + fallbackStop() mainUpdater.stop() } } @@ -294,8 +294,8 @@ internal class FlagConfigFallbackRetryWrapper( override fun shutdown() { lock.withLock { isRunning = false - fallbackStop() retryTask?.cancel(true) + fallbackStop() mainUpdater.shutdown() fallbackUpdater?.shutdown() }