Commit 324a6a03 authored by Manuel Kieweg's avatar Manuel Kieweg 🤷
Browse files

add mutex for httpAPI start

parent 44d01e0b
......@@ -99,5 +99,7 @@ func Run(ctx context.Context) error {
func shutdown() error {
log.Info("shutting down controller")
coreLock.Lock()
defer coreLock.Unlock()
return stopHttpServer()
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment