reid 2 лет назад
Родитель
Сommit
f29494af53
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      broadcast/broadcast.go

+ 1 - 0
broadcast/broadcast.go

@@ -232,6 +232,7 @@ func GetContainerNetworks(containers []string) map[string]string {
 // update broadcastState with a map of items
 // update broadcastState with a map of items
 func UpdateBroadcastState(values map[string]interface{}) error {
 func UpdateBroadcastState(values map[string]interface{}) error {
 	mu.Lock()
 	mu.Lock()
+	defer mu.Unlock()
 	v := reflect.ValueOf(&broadcastState).Elem()
 	v := reflect.ValueOf(&broadcastState).Elem()
 	for key, value := range values {
 	for key, value := range values {
 		field := v.FieldByName(key)
 		field := v.FieldByName(key)