Skip to content

Commit

Permalink
acquire lock for stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Dec 12, 2024
1 parent 03a824e commit bb784a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/deployment/DeploymentRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ internal class DeploymentRunner(
}

fun stop() {
poller.shutdown()
flagConfigUpdater.shutdown()
lock.once {
poller.shutdown()
flagConfigUpdater.shutdown()
}
}

private fun getCohortPollingInterval(): Long {
Expand Down

0 comments on commit bb784a6

Please sign in to comment.