fix: crontab setstatus force, forget this: crontab.force = force

This commit is contained in:
eson 2018-12-22 04:35:16 +08:00
parent ed2dfe0809
commit b7f0209cc3

View File

@ -108,6 +108,7 @@ func (cron *Crontab) SetStatus(statusType StatusType, statusValue ...interface{}
default:
panic(errors.New("statusValue type is error, the type is" + reflect.TypeOf(ivalue).String()))
}
cron.force = force
case SExecuteCrontab:
crontab := statusValue[0].(string)
cron.crontab = strings.TrimSpace(crontab)