HHH-9337 Region.destroy() attempts to remove a cache listener, but region class is not annotated with @Listener
(cherry picked from commit 2f881c38b4
)
This commit is contained in:
parent
cf728ede66
commit
b8923b1e39
|
@ -145,12 +145,7 @@ public abstract class BaseRegion implements Region {
|
|||
|
||||
@Override
|
||||
public void destroy() throws CacheException {
|
||||
try {
|
||||
cache.stop();
|
||||
}
|
||||
finally {
|
||||
cache.removeListener( this );
|
||||
}
|
||||
cache.stop();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue