Skip to content

Commit

Permalink
datalogger: close the connection object on disconnect.
Browse files Browse the repository at this point in the history
Signed-off-by: AlexandraTrifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed Sep 17, 2024
1 parent fe5fe23 commit cb1bc40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/datalogger/src/dataloggerplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ bool DataLoggerPlugin::onConnect()

bool DataLoggerPlugin::onDisconnect()
{
ConnectionProvider *cp = ConnectionProvider::GetInstance();
cp->close(m_param);

// This method is called when the disconnect button is pressed
// It must remove all connections that were established on the connection
for(auto &tool : m_toolList) {
Expand Down

0 comments on commit cb1bc40

Please sign in to comment.