mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11257 from lzhfromustc/grpcproxy_mis_unlock
grpcproxy: Add an Unlock before continue to prevent double lock
This commit is contained in:
commit
92f313811e
@ -254,6 +254,7 @@ func (wps *watchProxyStream) recvLoop() error {
|
||||
}
|
||||
if !w.wr.valid() {
|
||||
w.post(&pb.WatchResponse{WatchId: -1, Created: true, Canceled: true})
|
||||
wps.mu.Unlock()
|
||||
continue
|
||||
}
|
||||
wps.nextWatcherID++
|
||||
|
Loading…
x
Reference in New Issue
Block a user