remove lock for broadcast

This commit is contained in:
Nan Deng 2014-07-01 11:13:05 -07:00
parent f68446fed9
commit 7f9d66525a

View File

@ -118,9 +118,7 @@ func (f *FakeEtcdClient) Watch(prefix string, waitIndex uint64, recursive bool,
defer close(injectedError)
f.WatchInjectError = injectedError
f.condLock.Lock()
f.condWatchCompleted.Broadcast()
f.condLock.Unlock()
select {
case <-stop: