Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid shutdowned dlag clear #864

Merged
merged 2 commits into from
Sep 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions include/mqtt/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9323,7 +9323,7 @@ class endpoint : public std::enable_shared_from_this<endpoint<Mutex, LockGuard,
}
MQTT_LOG("mqtt_impl", trace)
<< MQTT_ADD_VALUE(address, this)
<< "receive DISCONNECT call chutdown";
<< "receive DISCONNECT call shutdown";
ep_.shutdown(*ep_.socket_);
ep_.on_mqtt_message_processed(
force_move(
Expand All @@ -9348,7 +9348,7 @@ class endpoint : public std::enable_shared_from_this<endpoint<Mutex, LockGuard,
}
MQTT_LOG("mqtt_impl", trace)
<< MQTT_ADD_VALUE(address, this)
<< "receive DISCONNECT call chutdown";
<< "receive DISCONNECT call shutdown";
ep_.shutdown(*ep_.socket_);
ep_.on_mqtt_message_processed(
force_move(
Expand Down Expand Up @@ -10366,7 +10366,7 @@ class endpoint : public std::enable_shared_from_this<endpoint<Mutex, LockGuard,
v5::properties props,
async_handler_t func
) {

shutdowned_ = false;
switch (version_) {
case protocol_version::v3_1_1:
do_async_write(
Expand Down Expand Up @@ -10408,7 +10408,6 @@ class endpoint : public std::enable_shared_from_this<endpoint<Mutex, LockGuard,
v5::properties props,
async_handler_t func
) {
shutdowned_ = false;
switch (version_) {
case protocol_version::v3_1_1: {
auto msg = v3_1_1::connack_message(
Expand Down