1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00
This commit is contained in:
Reinhard Pointner 2016-03-09 05:58:41 +00:00
parent 360e0b5a55
commit 535a16621c

View File

@ -27,13 +27,11 @@ class MemoizedResource<R> implements Resource<R> {
}
@Override
public R get() throws Exception {
synchronized (resource) {
if (value == null) {
value = resource.get();
}
return value;
public synchronized R get() throws Exception {
if (value == null) {
value = resource.get();
}
return value;
}
}