Skip to content

Commit

Permalink
bail out of upload function if there's nothing to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 19, 2020
1 parent 41e9c40 commit 7697634
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Etterna/Singletons/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,8 @@ DownloadManager::UploadScores()
if (!toUpload.empty())
LOG->Trace("Updating online scores. (Uploading %d scores)",
toUpload.size());
else
return false;

bool was_not_uploading_already = this->ScoreUploadSequentialQueue.empty();
if (was_not_uploading_already)
Expand Down

0 comments on commit 7697634

Please sign in to comment.