mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 10:55:38 +01:00
Merge branch 'master' of github.com:processing/processing
This commit is contained in:
@@ -36,7 +36,7 @@ public class ContributionListing {
|
||||
static final String LISTING_URL =
|
||||
"http://download.processing.org/contributions.txt";
|
||||
|
||||
static ContributionListing singleInstance;
|
||||
static volatile ContributionListing singleInstance;
|
||||
|
||||
File listingFile;
|
||||
ArrayList<ContributionChangeListener> listeners;
|
||||
@@ -64,7 +64,11 @@ public class ContributionListing {
|
||||
|
||||
static ContributionListing getInstance() {
|
||||
if (singleInstance == null) {
|
||||
singleInstance = new ContributionListing();
|
||||
synchronized (ContributionListing.class) {
|
||||
if (singleInstance == null) {
|
||||
singleInstance = new ContributionListing();
|
||||
}
|
||||
}
|
||||
}
|
||||
return singleInstance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user