mirror of
https://github.com/apple/pkl.git
synced 2026-04-25 09:48:41 +02:00
Fix usage of wrong lock object (#163)
This changes the lock object to `lock`, which every other method is locking on.
This commit is contained in:
@@ -554,7 +554,7 @@ class PackageResolvers {
|
|||||||
private FileSystem getZipFileSystem(PackageAssetUri uri, @Nullable Checksums checksums)
|
private FileSystem getZipFileSystem(PackageAssetUri uri, @Nullable Checksums checksums)
|
||||||
throws IOException, SecurityManagerException {
|
throws IOException, SecurityManagerException {
|
||||||
var packageUri = uri.getPackageUri();
|
var packageUri = uri.getPackageUri();
|
||||||
synchronized (fileSystems) {
|
synchronized (lock) {
|
||||||
var fs = fileSystems.get(packageUri);
|
var fs = fileSystems.get(packageUri);
|
||||||
if (fs == null) {
|
if (fs == null) {
|
||||||
var metadata = getDependencyMetadata(packageUri, checksums);
|
var metadata = getDependencyMetadata(packageUri, checksums);
|
||||||
|
|||||||
Reference in New Issue
Block a user