Skip to content

Commit a88a01a

Browse files
committed
Fix increasing quota on PUBACK or PUBREC of stray IDs
1 parent ad1e2d2 commit a88a01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ bool Session::clearQosMessage(uint16_t packet_id, bool qosHandshakeEnds)
236236
result = true;
237237
}
238238

239-
if (qosHandshakeEnds)
239+
if (qosHandshakeEnds && result)
240240
{
241241
qos_locked->increaseFlowControlQuota();
242242
}

0 commit comments

Comments
 (0)