Resize the thread pool also when setPollingThreadCount() is *not* called during load()

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4833 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
jbq committed 2007-09-20 09:53:10 +00:00
1 parent 62a295ecf4
commit 2d0f69d544
1 file changed
+3 -1
@@ -123,6 +123,9 @@ public class SCMTrigger extends Trigger<SCMedItem> {
DescriptorImpl() {
super(SCMTrigger.class);
load();
// Need to resize the thread pool here in case there is no existing configuration file for SCMTrigger as
// setPollingThreadCount() is not called in this case
resizeThreadPool();
}
public boolean isApplicable(Item item) {
@@ -178,7 +181,6 @@ public class SCMTrigger extends Trigger<SCMedItem> {
maximumThreads = n;
// Shutdown some threads if necessary
resizeThreadPool();
}