handle corner case
This commit is contained in:
@@ -243,8 +243,10 @@ func (a *Agent) consumeJob(job *Job, role string) {
|
|||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
a.Lock()
|
a.Lock()
|
||||||
|
if a.actionContext != nil {
|
||||||
a.actionContext.Cancel()
|
a.actionContext.Cancel()
|
||||||
a.actionContext = nil
|
a.actionContext = nil
|
||||||
|
}
|
||||||
a.Unlock()
|
a.Unlock()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user