Browse Source

volume: avoid hanging when stopping a volume server

pull/1513/head
Chris Lu 4 years ago
parent
commit
ec08a1670b
  1. 2
      weed/server/volume_grpc_client_to_master.go

2
weed/server/volume_grpc_client_to_master.go

@ -90,7 +90,7 @@ func (vs *VolumeServer) StopHeartbeat() (isAlreadyStopping bool) {
return true return true
} }
vs.isHeartbeating = false vs.isHeartbeating = false
vs.stopChan <- true
close(vs.stopChan)
return false return false
} }

Loading…
Cancel
Save