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

Don't start old transfer recovery thread if there is nothing to recover

parent 932486f3
No related branches found
No related tags found
2 merge requests!117Release,!105XX-3617 / faster file transfer
......@@ -49,6 +49,13 @@ func (m Manager) oldTransferRecovery(healthyChan chan bool, chanID uint64) {
return
}
// Return if there are no parts to recover
if len(sentRounds) == 0 {
jww.TRACE.Print(
"[FT] No in-progress rounds from old transfers to recover.")
return
}
// Update parts that were sent by looking up the status of the rounds they
// were sent on
go func(healthyChan chan bool, chanID uint64,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment