File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/cloudbees/jenkins Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public void onPost() {
75
75
public void onPost (String triggeredByUser ) {
76
76
final String pushBy = triggeredByUser ;
77
77
DescriptorImpl d = getDescriptor ();
78
- d .checkThreadPoolSize ();
78
+ d .checkThreadPoolSizeAndUpdateIfNecessary ();
79
79
d .queue .execute (new Runnable () {
80
80
private boolean runPolling () {
81
81
try {
@@ -245,14 +245,14 @@ public static class DescriptorImpl extends TriggerDescriptor {
245
245
private transient int maximumThreads = Integer .MIN_VALUE ;
246
246
247
247
public DescriptorImpl () {
248
- checkThreadPoolSize ();
248
+ checkThreadPoolSizeAndUpdateIfNecessary ();
249
249
}
250
250
251
251
/**
252
252
* Update the {@link java.util.concurrent.ExecutorService} instance.
253
253
*/
254
254
/*package*/
255
- synchronized void checkThreadPoolSize () {
255
+ synchronized void checkThreadPoolSizeAndUpdateIfNecessary () {
256
256
if (scmTrigger != null ) {
257
257
int count = scmTrigger .getPollingThreadCount ();
258
258
if (maximumThreads != count ) {
You can’t perform that action at this time.
0 commit comments