Skip to content

Commit 2553b0d

Browse files
committed
[localcontroller] Remove condition to disconnect from central system when charge point is no more connected
1 parent b3a093f commit 2553b0d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/localcontroller/chargepoint/ChargePointProxy.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,11 @@ ChargePointProxy::ChargePointProxy(const std::string&
8888
/** @brief Destructor */
8989
ChargePointProxy::~ChargePointProxy()
9090
{
91-
if (m_rpc->isConnected())
92-
{
93-
// Disconnect from the charge point
94-
m_rpc->disconnect(false);
91+
// Disconnect from the charge point
92+
m_rpc->disconnect(false);
9593

96-
// Disconnect from the central system
97-
m_central_system->disconnect();
98-
}
94+
// Disconnect from the central system
95+
m_central_system->disconnect();
9996
}
10097

10198
// IChargePointProxy interface

0 commit comments

Comments
 (0)