X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FState.java;fp=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FState.java;h=91faa719841a534ba5636a815ff1f137dc069368;hp=3199901e90e191962c5815b6bde1623e39cda4f8;hb=1dd02a0d0e604a82e67f04559e213db76c9ebac5;hpb=4f743d81482d51262a7bc07d2a4874cdd0856a17 diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java index 3199901e9..91faa7198 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/State.java @@ -332,7 +332,6 @@ class State { // deny can always remove a persistent statement. clusterStream.reallyFlush(); - Disposable.safeDispose(session.clientChanges); session.clientChanges = new ClientChangesImpl(session); @@ -385,6 +384,7 @@ class State { this.close(); // Everything is lost anyway. throw new IllegalStateException(e); } finally { + Disposable.safeDispose(cs); lock.unlock(); } }