aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filesys')
-rw-r--r--weed/filesys/wfs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 7fb3e0141..a3e16a996 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -66,6 +66,7 @@ func (wfs *WFS) withFilerClient(fn func(filer_pb.SeaweedFilerClient) error) erro
grpcConnection, err := util.GrpcDial(wfs.option.FilerGrpcAddress)
if err != nil {
+ wfs.grpcClientsLock.Unlock()
return fmt.Errorf("fail to dial %s: %v", wfs.option.FilerGrpcAddress, err)
}