sectorstorage: Fix panic in returnResult

This commit is contained in:
Łukasz Magiera 2020-09-23 17:37:05 +02:00
parent 3003789288
commit c17f0d7e61

View File

@ -320,8 +320,11 @@ func (m *Manager) returnResult(callID storiface.CallID, r interface{}, serr stri
m.results[wid] = res m.results[wid] = res
close(m.waitRes[wid]) _, found := m.waitRes[wid]
delete(m.waitRes, wid) if found {
close(m.waitRes[wid])
delete(m.waitRes, wid)
}
return nil return nil
} }