diff --git a/src/main/java/org/eu/ingwar/tools/arquillian/extension/suite/ArquillianSuiteExtension.java b/src/main/java/org/eu/ingwar/tools/arquillian/extension/suite/ArquillianSuiteExtension.java index b1b24ec..cf38fb3 100644 --- a/src/main/java/org/eu/ingwar/tools/arquillian/extension/suite/ArquillianSuiteExtension.java +++ b/src/main/java/org/eu/ingwar/tools/arquillian/extension/suite/ArquillianSuiteExtension.java @@ -123,9 +123,9 @@ public static class SuiteDeployer { */ public void blockDeployManagedDeploymentsWhenNeeded(@Observes EventContext eventContext) { if (deployDeployments) { + deployDeployments = false; debug("NOT Blocking DeployManagedDeployments event {}", eventContext.getEvent().toString()); eventContext.proceed(); - deployDeployments = false; } else { // Do nothing with event. debug("Blocking DeployManagedDeployments event {}", eventContext.getEvent().toString()); @@ -142,9 +142,9 @@ public void blockGenerateDeploymentWhenNeeded(@Observes EventContext eventContext) { if (undeployDeployments) { + undeployDeployments = false; debug("NOT Blocking UnDeployManagedDeployments event {}", eventContext.getEvent().toString()); eventContext.proceed(); - undeployDeployments = false; } else { // Do nothing with event. debug("Blocking UnDeployManagedDeployments event {}", eventContext.getEvent().toString());