Skip to content

Commit

Permalink
Removed unecesary timer stop
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed Dec 6, 2024
1 parent 9490398 commit 1a304de
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/ocpp/common/websocket/websocket_libwebsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,6 @@ WebsocketLibwebsockets::~WebsocketLibwebsockets() {
}
}

// Stop the dangling timer
{
std::lock_guard<std::mutex> lk(this->reconnect_mutex);
this->reconnect_timer_tpm.stop();
}

if (this->m_is_connected || is_trying_to_connect_internal()) {
this->close_internal(WebsocketCloseReason::Normal, "websocket destructor");
}
Expand Down

0 comments on commit 1a304de

Please sign in to comment.