mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-09 13:28:20 +01:00
volume: avoid hanging when stopping a volume server
This commit is contained in:
1 parent
62d3d3aea0
commit
ec08a1670b
1 file changed
+1
-1
@@ -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