Skip to content

Commit

Permalink
acknowledge in error case
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBrand committed Sep 21, 2023
1 parent a9905db commit cdfe798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void accept(final @NotNull Mqtt3Publish mqtt3Publish) {
mqtt3Publish);
} catch (final Exception e) {
Logger.error("An error occurred while processing an incoming PUBLISH.", e);
mqtt3Publish.acknowledge();
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void accept(final @NotNull Mqtt5Publish mqtt5Publish) {
mqtt5Publish);
} catch (final Exception e) {
Logger.error("An error occurred while processing an incoming PUBLISH.", e);
mqtt5Publish.acknowledge();
return;
}

Expand Down

0 comments on commit cdfe798

Please sign in to comment.