volume: avoid hanging when stopping a volume server

This commit is contained in:
Chris Lu 2020-10-07 23:48:24 -07:00
parent 62d3d3aea0
commit ec08a1670b

View file

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