Skip to content

Commit

Permalink
Only capture the first failure state in passport future listener (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbunney committed Oct 19, 2022
1 parent a6cbfe9 commit 10f787a
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -48,8 +48,12 @@ public void operationComplete(Future future) throws Exception
passport.add(successState);
}
else {
if (failState != null)
passport.add(failState);
if (failState != null) {
// only capture a single failure state event,
// as sending content errors will fire for all content chunks,
// and we only need the first one
passport.addIfNotAlready(failState);
}
}
}
}

0 comments on commit 10f787a

Please sign in to comment.