Skip to content

Commit

Permalink
only restart downloads when file is marked as downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
MutsiMutsi committed Dec 14, 2020
1 parent a47a906 commit 5363d8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion surge/SurgeClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func InitializeClient(args []string, waitForReconnect bool) bool {

go BuildSeedString(filesOnDisk)
for i := 0; i < len(filesOnDisk); i++ {
go restartDownload(filesOnDisk[i].FileHash)
if filesOnDisk[i].IsDownloading {
go restartDownload(filesOnDisk[i].FileHash)
}
}

go autoSubscribeWorker()
Expand Down

0 comments on commit 5363d8d

Please sign in to comment.