File tree Expand file tree Collapse file tree
src/main/java/com/cloudbees/jenkins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public void onPost() {
7575 public void onPost (String triggeredByUser ) {
7676 final String pushBy = triggeredByUser ;
7777 DescriptorImpl d = getDescriptor ();
78- d .checkThreadPoolSize ();
78+ d .checkThreadPoolSizeAndUpdateIfNecessary ();
7979 d .queue .execute (new Runnable () {
8080 private boolean runPolling () {
8181 try {
@@ -245,14 +245,14 @@ public static class DescriptorImpl extends TriggerDescriptor {
245245 private transient int maximumThreads = Integer .MIN_VALUE ;
246246
247247 public DescriptorImpl () {
248- checkThreadPoolSize ();
248+ checkThreadPoolSizeAndUpdateIfNecessary ();
249249 }
250250
251251 /**
252252 * Update the {@link java.util.concurrent.ExecutorService} instance.
253253 */
254254 /*package*/
255- synchronized void checkThreadPoolSize () {
255+ synchronized void checkThreadPoolSizeAndUpdateIfNecessary () {
256256 if (scmTrigger != null ) {
257257 int count = scmTrigger .getPollingThreadCount ();
258258 if (maximumThreads != count ) {
You can’t perform that action at this time.
0 commit comments