From: jsimomaa Date: Thu, 8 Mar 2018 07:56:08 +0000 (+0200) Subject: IndexedRelationsSearcherBase possible deadlock with semaphore X-Git-Tag: v1.43.0~136^2~557 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F1535%2F2;p=simantics%2Fplatform.git IndexedRelationsSearcherBase possible deadlock with semaphore refs #7805 Change-Id: I0a3e7d03b648d2b03b187baf171c0c95b4b7abb9 --- diff --git a/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java b/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java index c70650ede..71db7f616 100644 --- a/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java +++ b/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java @@ -698,10 +698,10 @@ abstract public class IndexedRelationsSearcherBase { } } } - - s.release(); } catch (DatabaseException e) { throw new IllegalStateException(e); + } finally { + s.release(); } }); }