Skip to content

Commit

Permalink
disconnecting websocket with websocketpp::close::status::going away
Browse files Browse the repository at this point in the history
Signed-off-by: pietfried <[email protected]>
  • Loading branch information
Pietfried committed Nov 22, 2023
1 parent 34bd0a1 commit b208d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void ChargePoint::stop() {
this->websocket_timer.stop();
this->client_certificate_expiration_check_timer.stop();
this->v2g_certificate_expiration_check_timer.stop();
this->disconnect_websocket(websocketpp::close::status::going_away);
this->disconnect_websocket(websocketpp::close::status::normal);
this->message_queue->stop();
}

Expand Down Expand Up @@ -719,7 +719,7 @@ void ChargePoint::init_websocket() {

this->websocket->register_closed_callback(
[this, connection_options, configuration_slot](const websocketpp::close::status::value reason) {
EVLOG_warning << "Failed to connect to NetworkConfigurationPriority: "
EVLOG_warning << "Closed websocket of NetworkConfigurationPriority: "
<< this->network_configuration_priority + 1
<< " which is configurationSlot: " << configuration_slot;

Expand Down

0 comments on commit b208d4e

Please sign in to comment.