diff --git a/weed/server/volume_grpc_client_to_master.go b/weed/server/volume_grpc_client_to_master.go index 219948936..7493f1460 100644 --- a/weed/server/volume_grpc_client_to_master.go +++ b/weed/server/volume_grpc_client_to_master.go @@ -110,7 +110,7 @@ func (vs *VolumeServer) doHeartbeat(masterNode string, sleepInterval time.Durati glog.V(0).Infof("Volume Server Failed to talk with master %s: %v", masterNode, err) return "", err } - case <-doneChan: + case err = <-doneChan: return } }