mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
volume: avoid hanging when stopping a volume server
This commit is contained in:
@@ -90,7 +90,7 @@ func (vs *VolumeServer) StopHeartbeat() (isAlreadyStopping bool) {
|
||||
return true
|
||||
}
|
||||
vs.isHeartbeating = false
|
||||
vs.stopChan <- true
|
||||
close(vs.stopChan)
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user