mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +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.condWatchCompleted.Broadcast()
|
||||||
f.condLock.Unlock()
|
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 {
|
select {
|
||||||
case <-stop:
|
case <-stop:
|
||||||
return nil, etcd.ErrWatchStoppedByUser
|
return nil, etcd.ErrWatchStoppedByUser
|
||||||
|
Loading…
Reference in New Issue
Block a user