Skip to content

Commit

Permalink
Clear successHandler after use or failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Nov 4, 2023
1 parent 5fd1b5c commit 31b170e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ private synchronized void setState(final ExportNotification.State state) {
} catch (final Exception err) {
log.error().append("Unexpected error while reporting success: ").append(err).endl();
}
successHandler = null;
}

if (isNowExported || isExportStateTerminal(state)) {
Expand All @@ -834,6 +835,7 @@ private synchronized void setState(final ExportNotification.State state) {
parents = Collections.emptyList();
exportMain = null;
errorHandler = null;
successHandler = null;
}

if ((isNowExported && isNonExport()) || isExportStateTerminal(state)) {
Expand Down

0 comments on commit 31b170e

Please sign in to comment.