add additional check for avoid deadlocks in remote live query
@@ -479,7 +479,8 @@ public class OStorageRemote extends OStorageAbstract implements OStorageProxy, O
}
//In backward compatible code the context is missing check if is there.
- if (context != null) {
+ //we need to check the status closing here for avoid deadlocks (in future flow refactor this may be removed)
+ if (context != null && status != STATUS.CLOSING) {
context.closeStorage(this);
}
