Prevent the stop data feed listener from being called multiple times (elastic/x-pack-elasticsearch#1075)

Original commit: elastic/x-pack-elasticsearch@464d5ae6ba
This commit is contained in:
David Kyle 2017-04-13 14:02:03 +01:00 committed by GitHub
parent 911cfc9623
commit ac0e2a72cc
1 changed files with 0 additions and 1 deletions

View File

@ -289,7 +289,6 @@ public class StopDatafeedAction
if (counter.incrementAndGet() == resolvedDatafeeds.size()) { if (counter.incrementAndGet() == resolvedDatafeeds.size()) {
sendResponseOrFailure(request.getDatafeedId(), listener, failures); sendResponseOrFailure(request.getDatafeedId(), listener, failures);
} }
listener.onResponse(new Response(true));
} }
@Override @Override
public void onFailure(Exception e) { public void onFailure(Exception e) {