Skip to content

Commit

Permalink
downloadlist->synchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
xaverW committed Dec 23, 2023
1 parent 6a73a2b commit 05e7574
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,17 @@ public synchronized void putBackDownloads(ArrayList<DownloadData> list) {
}
}

public void startAllDownloads() {
public synchronized void startAllDownloads() {
startDownloads(this, false);
}

public void startDownloads(DownloadData download) {
public synchronized void startDownloads(DownloadData download) {
DownloadFactoryStartDownload.startDownloads(this,
new PGetList<DownloadData>().getArrayList(download));
setDownloadsChanged();
}

public void startDownloads(Collection<DownloadData> list, boolean alsoFinished) {
public synchronized void startDownloads(Collection<DownloadData> list, boolean alsoFinished) {
if (DownloadFactoryStartDownload.startDownloads(this, list, alsoFinished)) {
setDownloadsChanged();
}
Expand Down

0 comments on commit 05e7574

Please sign in to comment.