X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FSessionRequestManager.java;h=5bdec52e99cfcb3cdb71010584250904e65ad9ac;hb=1251d640abb698a4018ef1ea212f8cdf78befaaf;hp=0ec6387ae941b0e9cb9c6358282c3b3849ff9d0d;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionRequestManager.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionRequestManager.java index 0ec6387ae..5bdec52e9 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionRequestManager.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionRequestManager.java @@ -4,6 +4,7 @@ import java.io.IOException; import java.util.Collection; import java.util.LinkedList; +import org.simantics.db.Disposable; import org.simantics.db.Resource; import org.simantics.db.common.utils.Logger; import org.simantics.db.exception.CancelTransactionException; @@ -213,6 +214,7 @@ public class SessionRequestManager { } else { throw new UnsupportedOperationException("delayedWriteState may only exist when request fails."); } + Disposable.safeDispose(session.clientChanges); session.clientChanges = new ClientChangesImpl(session); delayedState.finish(); return; @@ -242,6 +244,7 @@ public class SessionRequestManager { } + Disposable.safeDispose(session.clientChanges); session.clientChanges = new ClientChangesImpl(session); WriteState state = session.writeState;