Skip to content

Commit

Permalink
1030: take care of grants between sessions
Browse files Browse the repository at this point in the history
forget released grants, saved from previous run
  • Loading branch information
eparovyshnaia committed Feb 21, 2022
1 parent e19f6d4 commit c4dbdb9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package org.eclipse.passage.lic.internal.base.access;

import java.nio.file.Path;
import java.util.List;
import java.util.function.Supplier;

import org.eclipse.passage.lic.api.LicensedProduct;
Expand Down Expand Up @@ -51,11 +50,7 @@ public synchronized void trace(GrantAcquisition grant) {
public synchronized void forget(GrantAcquisition grant) {
synchronized (storage) {
storage.forget(grant);
List<GrantAcquisition> grants = storage.grants();
if (grants.size() > 2) {
System.out.print(""); //$NON-NLS-1$
}
residence.write(grants);
residence.write(storage.grants());
}
}

Expand Down

0 comments on commit c4dbdb9

Please sign in to comment.