import fixed

This commit is contained in:
Lucio Lelii 2022-07-27 09:32:08 +02:00
parent b9ca6eab87
commit 25e5321e6f
1 changed files with 3 additions and 5 deletions

View File

@ -63,14 +63,12 @@ public class WhnManagerImpl implements WhnManager{
logger.info("Returned response for remove scope {} ",body);
}
appContext.container().events().fire(context, ContextEvents.REMOVE_CONTEXT_FROM_CONTAINER);
appContext.container().events().fire(context, ContextEvents.ADD_CONTEXT_TO_CONTAINER);
} catch (Exception e) {
logger.error("error removing context {}", context, e);
logger.error("error adding context {}", context, e);
return false;
}
appContext.container().events().fire(context, ContextEvents.ADD_CONTEXT_TO_CONTAINER);
}else{
logger.error("context is null");
return false;