Skip to content

Commit

Permalink
Updated formatting
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed Dec 4, 2024
1 parent 35cfc6d commit 4fa84ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ocpp/common/websocket/websocket_libwebsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ void WebsocketLibwebsockets::thread_websocket_client_loop(std::shared_ptr<Connec
auto state = local_data->get_state();
processing = (!local_data->is_interupted()) &&
(state != EConnectionState::FINALIZED && state != EConnectionState::ERROR);

if (processing && !message_queue.empty()) {
lws_callback_on_writable(local_data->get_conn());
}
Expand Down Expand Up @@ -854,7 +854,7 @@ void WebsocketLibwebsockets::close(const WebsocketCloseReason code, const std::s

std::scoped_lock lock(this->connection_mutex);

// Close any incoming thread
// Close any ongoing thread
safe_close_threads();

// Release the connection data and state
Expand Down

0 comments on commit 4fa84ec

Please sign in to comment.