Skip to content

Commit

Permalink
Merge pull request #3737 from yuzp1996/master
Browse files Browse the repository at this point in the history
Shutdown original queue before override
  • Loading branch information
k8s-ci-robot authored Oct 14, 2024
2 parents a145204 + 6041de7 commit 6bc1880
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public DefaultControllerBuilder withName(String controllerName) {
* @return the controller builder
*/
public DefaultControllerBuilder withWorkQueue(RateLimitingQueue<Request> workQueue) {
if (this.workQueue != null && !this.workQueue.isShuttingDown()){
this.workQueue.shutDown();
}
this.workQueue = workQueue;
return this;
}
Expand Down

0 comments on commit 6bc1880

Please sign in to comment.