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:
translatenix
2024-02-15 13:25:43 -08:00
committed by GitHub
parent 699cdc623e
commit 1c29287344

View File

@@ -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);