mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-18 06:30:07 +08: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
|
return true
|
||||||
}
|
}
|
||||||
vs.isHeartbeating = false
|
vs.isHeartbeating = false
|
||||||
vs.stopChan <- true
|
close(vs.stopChan)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user