mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
volume: avoid hanging when stopping a volume server
This commit is contained in:
parent
62d3d3aea0
commit
ec08a1670b
|
@ -90,7 +90,7 @@ func (vs *VolumeServer) StopHeartbeat() (isAlreadyStopping bool) {
|
|||
return true
|
||||
}
|
||||
vs.isHeartbeating = false
|
||||
vs.stopChan <- true
|
||||
close(vs.stopChan)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue