make dispose thread-safe to avoid unexpected leaks during register/dispose interleavings
[idea/community.git] / platform / util / src / com / intellij / openapi / util / Disposer.java
index 28d4245362b6059da9b263b93502e950d775de78..2694f5d3fcdac7dac25a1712f2004d89d6fe806d 100644 (file)
@@ -111,7 +111,7 @@ public final class Disposer {
   }
 
   public static boolean isDisposing(@NotNull Disposable disposable) {
-    return ourTree.isDisposing(disposable);
+    return isDisposed(disposable);
   }
 
   public static Disposable get(@NotNull String key) {