Skip to content
Snippets Groups Projects
Commit 96ed1b8a authored by Christian Pointner's avatar Christian Pointner
Browse files

fixed typo

parent 68ea7cac
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ func (job *Job) Cancel() { ...@@ -163,7 +163,7 @@ func (job *Job) Cancel() {
oldState := atomic.SwapUint32((*uint32)(&job.State), uint32(JobCanceled)) oldState := atomic.SwapUint32((*uint32)(&job.State), uint32(JobCanceled))
// this next line is why we need to make sure JobCanceled is smaller than all the other states. // this next line is why we need to make sure JobCanceled is smaller than all the other states.
if oldState < uint32(JobPending) { if oldState < uint32(JobPending) {
// job.cancel() might not yet be initialized yet, setting the state to canceled is the // job.cancel() might not yet be initialized, setting the state to canceled is the
// only thing we can do for now... job.Start() or job.run() will take care of the rest. // only thing we can do for now... job.Start() or job.run() will take care of the rest.
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment