We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4905c1c commit 5214913Copy full SHA for 5214913
lib/ocpp/common/websocket/websocket_base.cpp
@@ -78,12 +78,13 @@ void WebsocketBase::disconnect(websocketpp::close::status::value code) {
78
EVLOG_error << "Cannot disconnect a websocket that was not initialized";
79
return;
80
}
81
- if (code == websocketpp::close::status::normal) {
82
- this->shutting_down = true;
83
- }
84
85
{
86
std::lock_guard<std::mutex> lk(this->reconnect_mutex);
+ if (code == websocketpp::close::status::normal) {
+ this->shutting_down = true;
+ }
87
+
88
if (this->reconnect_timer) {
89
this->reconnect_timer.get()->cancel();
90
0 commit comments