Skip to content

Commit

Permalink
Merge pull request #37 from sanjusss/main
Browse files Browse the repository at this point in the history
fix missing ep.tim_pingresp_recv_.cancel() after pingresp_packet.
  • Loading branch information
redboltz authored Jun 29, 2023
2 parents a3f93da + 6bd34d8 commit 34e4f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/async_mqtt/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1767,8 +1767,10 @@ class basic_endpoint {
}
},
[&](v3_1_1::pingresp_packet&) {
ep.tim_pingresp_recv_.cancel();
},
[&](v5::pingresp_packet&) {
ep.tim_pingresp_recv_.cancel();
},
[&](v3_1_1::disconnect_packet&) {
ep.status_ = connection_status::disconnecting;
Expand Down

0 comments on commit 34e4f2d

Please sign in to comment.