mirror of
https://github.com/rancher/steve.git
synced 2025-05-05 22:46:47 +00:00
lock to avoid panic
This commit is contained in:
parent
139bacf74d
commit
a32064f238
@ -228,7 +228,9 @@ func (h *clusterCache) start() {
|
||||
}
|
||||
|
||||
event := eventObj.(event)
|
||||
h.RLock()
|
||||
w := h.watchers[event.gvr]
|
||||
h.RUnlock()
|
||||
if w == nil {
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user