Skip to content

Commit 0186834

Browse files
author
lthys
committed
Fix on wrong method called in SchedulerFactory
1 parent 8d29116 commit 0186834

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

shedlock-spring/src/main/java/net/javacrumbs/shedlock/spring/SpringLockableTaskSchedulerFactory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ public static LockableTaskScheduler newLockableTaskScheduler(int poolSize, LockP
102102
}
103103

104104
public static LockableTaskScheduler newLockableTaskScheduler(int poolSize, LockProvider lockProvider) {
105-
ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
106-
taskScheduler.setPoolSize(poolSize);
107-
taskScheduler.initialize();
108-
return newLockableTaskScheduler(taskScheduler, lockProvider, (LockConfigurationExtractor)null);
105+
return newLockableTaskScheduler(poolSize, lockProvider, (LockConfigurationExtractor)null);
109106
}
110107
}

0 commit comments

Comments
 (0)