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:
parent
911cfc9623
commit
ac0e2a72cc
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue