Skip to content

Commit

Permalink
Check if message is null before releasing message id (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu42 authored Dec 8, 2023
1 parent 8e3c564 commit 682de7b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ private void handleRunException(MqttWireMessage message, Exception ex)
) {
clientState.releaseMessageId(message.getMessageId());
}
clientState.releaseMessageId(message.getType());
if (message != null) {
clientState.releaseMessageId(message.getType());
}
running = false;

clientComms.shutdownConnection(null, mex);
Expand Down

0 comments on commit 682de7b

Please sign in to comment.