diff --git a/fileTransfer/oldTransferRecovery.go b/fileTransfer/oldTransferRecovery.go index a2d493168238111039539c3fafecb19a61cfb30b..3294455398d1dee3c73579d518a5fecbdf976f27 100644 --- a/fileTransfer/oldTransferRecovery.go +++ b/fileTransfer/oldTransferRecovery.go @@ -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,