mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
do not recreate
This commit is contained in:
parent
7b432eac5c
commit
101806cb5e
@ -123,13 +123,6 @@ func (f *FakeEtcdClient) Watch(prefix string, waitIndex uint64, recursive bool,
|
||||
f.condWatchCompleted.Broadcast()
|
||||
f.condLock.Unlock()
|
||||
|
||||
// After calling this function, the WatchStop channel will not be ready
|
||||
defer func() {
|
||||
f.condLock.Lock()
|
||||
f.condWatchCompleted = sync.NewCond(&f.condLock)
|
||||
f.condLock.Unlock()
|
||||
}()
|
||||
|
||||
select {
|
||||
case <-stop:
|
||||
return nil, etcd.ErrWatchStoppedByUser
|
||||
|
Loading…
Reference in New Issue
Block a user