mirror of
https://github.com/minio/minio.git
synced 2025-07-08 16:42:17 -04:00
fix: canceling the heal caused goroutine to leak. (#18322)
This commit is contained in:
parent
96ec8fcba1
commit
d5e8dac1cf
@ -1056,7 +1056,7 @@ func (a adminAPIHandlers) HealHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
respCh := make(chan healResp)
|
respCh := make(chan healResp, 1)
|
||||||
switch {
|
switch {
|
||||||
case hip.forceStop:
|
case hip.forceStop:
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user