Hold lock on GetGlobalStateKey() - fixes #652

master
Harshavardhana 9 years ago
parent b793f53d48
commit e9a3fd677a
  1. 2
      pkg/iodine/iodine.go

@ -87,7 +87,9 @@ func GetGlobalState() map[string]string {
// GetGlobalStateKey - get value for key from globalState struct
func GetGlobalStateKey(k string) string {
globalState.RLock()
result, ok := globalState.m[k]
globalState.RUnlock()
if !ok {
return ""
}

Loading…
Cancel
Save