Skip to content

Commit

Permalink
First change flag and then try doing stuff..
Browse files Browse the repository at this point in the history
- Cause before flag was not changed on error
  • Loading branch information
ingwarsw committed Jun 10, 2014
1 parent 767cc8c commit 2237ffa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ public static class SuiteDeployer {
*/
public void blockDeployManagedDeploymentsWhenNeeded(@Observes EventContext<DeployManagedDeployments> 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());
Expand All @@ -142,9 +142,9 @@ public void blockGenerateDeploymentWhenNeeded(@Observes EventContext<GenerateDep
// Do nothing with event.
debug("Blocking GenerateDeployment event {}", eventContext.getEvent().toString());
} else {
suiteDeploymentGenerated = true;
debug("NOT Blocking GenerateDeployment event {}", eventContext.getEvent().toString());
eventContext.proceed();
suiteDeploymentGenerated = true;
}
}

Expand All @@ -157,9 +157,9 @@ public void blockGenerateDeploymentWhenNeeded(@Observes EventContext<GenerateDep
*/
public void blockUnDeployManagedDeploymentsWhenNeeded(@Observes EventContext<UnDeployManagedDeployments> 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());
Expand Down

0 comments on commit 2237ffa

Please sign in to comment.