Skip to content

Commit 9b5d9c1

Browse files
committed
awerwf
1 parent 59117c2 commit 9b5d9c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

logicaldoc-core/src/main/java/com/logicaldoc/core/task/TaskScheduling.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public void setEnabled(boolean enabled) {
100100
*/
101101
public void load() throws IOException, ParseException {
102102
ContextProperties config = Context.get().getProperties();
103-
String enbl = config.getProperty("schedule.enabled." + taskName);
104-
this.enabled = "true".equals(enbl);
103+
this.enabled = config.getBoolean("schedule.enabled." + taskName, false);
105104
setCronExpression(config.getProperty("schedule.cron." + taskName));
106105
setMode(config.getProperty("schedule.mode." + taskName));
107106
try {

0 commit comments

Comments
 (0)