fix(emqx_channel): fix bug when publish deny
fix the bug of replying to puback when the publish message with Qos equal to 2 is deny
This commit is contained in:
parent
8477780e2b
commit
cae0849152
|
@ -501,8 +501,10 @@ process_publish(Packet = ?PUBLISH_PACKET(QoS, Topic, PacketId),
|
||||||
ignore ->
|
ignore ->
|
||||||
case QoS of
|
case QoS of
|
||||||
?QOS_0 -> {ok, NChannel};
|
?QOS_0 -> {ok, NChannel};
|
||||||
_ ->
|
?QOS_1 ->
|
||||||
handle_out(puback, {PacketId, Rc}, NChannel)
|
handle_out(puback, {PacketId, Rc}, NChannel);
|
||||||
|
?QOS_2 ->
|
||||||
|
handle_out(pubrec, {PacketId, Rc}, NChannel)
|
||||||
end;
|
end;
|
||||||
disconnect ->
|
disconnect ->
|
||||||
handle_out(disconnect, Rc, NChannel)
|
handle_out(disconnect, Rc, NChannel)
|
||||||
|
|
Loading…
Reference in New Issue