Skip to content
Snippets Groups Projects
Commit 324a6a03 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

add mutex for httpAPI start

parent 44d01e0b
No related branches found
No related tags found
2 merge requests!127Resolve "Runner not Ready for Networking",!90Develop
Pipeline #67499 passed with warnings
...@@ -99,5 +99,7 @@ func Run(ctx context.Context) error { ...@@ -99,5 +99,7 @@ func Run(ctx context.Context) error {
func shutdown() error { func shutdown() error {
log.Info("shutting down controller") log.Info("shutting down controller")
coreLock.Lock()
defer coreLock.Unlock()
return stopHttpServer() return stopHttpServer()
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment