intellij-kubernetes icon indicating copy to clipboard operation
intellij-kubernetes copied to clipboard

fix: dont freeze editor when closing editor with offline cluster

Open adietish opened this issue 6 months ago • 2 comments

fixes #869

Freezing was caused by race conditions in the locks. Closing the editor disposes the editor resources. Disposing the editor resource closes the cluster connection. When closing the watch, a new resource state is retrieved, this then ended in the resource lock waiting for the connection timeout. Solved it by introducing a new "Disposed" state which is returned whenever an editor resource is disposed. No further state retrieval occurrs.

adietish avatar Apr 28 '25 08:04 adietish