mirror of
https://github.com/apple/pkl.git
synced 2026-03-18 23:33:55 +01: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)
|
||||
throws IOException, SecurityManagerException {
|
||||
var packageUri = uri.getPackageUri();
|
||||
synchronized (fileSystems) {
|
||||
synchronized (lock) {
|
||||
var fs = fileSystems.get(packageUri);
|
||||
if (fs == null) {
|
||||
var metadata = getDependencyMetadata(packageUri, checksums);
|
||||
|
||||
Reference in New Issue
Block a user