builder: fix concurrent map write
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 5ad981640f
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0df114a8f8
commit
f34a5b5af0
1 changed files with 2 additions and 0 deletions
|
@ -241,7 +241,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