sectorstorage: Fix panic in returnResult
This commit is contained in:
parent
3003789288
commit
c17f0d7e61
7
extern/sector-storage/manager_calltracker.go
vendored
7
extern/sector-storage/manager_calltracker.go
vendored
@ -320,8 +320,11 @@ func (m *Manager) returnResult(callID storiface.CallID, r interface{}, serr stri
|
||||
|
||||
m.results[wid] = res
|
||||
|
||||
close(m.waitRes[wid])
|
||||
delete(m.waitRes, wid)
|
||||
_, found := m.waitRes[wid]
|
||||
if found {
|
||||
close(m.waitRes[wid])
|
||||
delete(m.waitRes, wid)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user