Skip to content
Snippets Groups Projects
Commit 0ec3de42 authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix NewOrLoadSent erroring when no transfers were loaded

parent 310fb7ff
No related branches found
No related tags found
1 merge request!430XX-4277 / Fix file transfer crashes
......@@ -91,7 +91,7 @@ func NewOrLoadSent(kv *versioned.KV) (*Sent, []Part, error) {
}
// Return an error if all transfers failed to load
if errCount == len(tidList) {
if len(tidList) > 0 && errCount == len(tidList) {
return nil, nil, errors.Errorf(errLoadAllSentTransfer, len(tidList))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment