Skip to content

Commit

Permalink
gs-ir: AbstractMultitonVerticle: minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
plassalas committed Sep 21, 2017
1 parent a91b4d2 commit 2918a0a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected void undeployVerticle(Vertx vertx) {

@Override
public void stop(Future<Void> stopFuture) throws Exception {
if (isDeployed) {
if (this.isDeployed) {
SharedData sd = vertx.sharedData();
sd.getCounter(getCounter(), res -> {
if (!res.succeeded()) {
Expand All @@ -128,6 +128,7 @@ public void stop(Future<Void> stopFuture) throws Exception {
else {
long newValue = ar2.result();
logger.debug("Counter {} decremented to {} (previously {})", getCounter(), newValue, (newValue + 1));
this.isDeployed = false;
}
});
}
Expand Down

0 comments on commit 2918a0a

Please sign in to comment.