builder: fix concurrent map write
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
ff99a93b81
commit
5ad981640f
1 changed files with 2 additions and 0 deletions
|
@ -240,7 +240,9 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder.
|
||||||
}
|
}
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
b.mu.Lock()
|
||||||
delete(b.jobs, buildID)
|
delete(b.jobs, buildID)
|
||||||
|
b.mu.Unlock()
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue