mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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() {
|
||||
b.mu.Lock()
|
||||
delete(b.jobs, buildID)
|
||||
b.mu.Unlock()
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue