Fix stale storage watchers after grid node removal (#1704)

This commit is contained in:
Kogepan229 authored and GitHub committed 2026-10-15 07:32:48 -07:00
1 parent 798e465f9e
commit c690fbc273
1 file changed
+1 -2
+1 -2
View File
@@ -152,11 +152,10 @@ public class GridStorageCache implements IStorageGrid {
}
if (machine instanceof IStackWatcherHost) {
final IStackWatcher myWatcher = this.watchers.get(machine);
final IStackWatcher myWatcher = this.watchers.remove(node);
if (myWatcher != null) {
myWatcher.clear();
this.watchers.remove(machine);
}
}
}