Skip to content

Commit 526d6ad

Browse files
committed
[chargepoint - status] Fix RPC error when returning Scheduled or Refused to a ChangeAvailability request
1 parent c129524 commit 526d6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chargepoint/status/StatusManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,10 @@ bool StatusManager::handleMessage(const ocpp::messages::ChangeAvailabilityReq& r
372372
status = ChargePointStatus::Available;
373373
}
374374
m_worker_pool.run<void>([this, connector_id, status] { updateConnectorStatus(connector_id, status); });
375-
ret = true;
376375
}
377376

378377
LOG_INFO << "Change availability " << AvailabilityStatusHelper.toString(response.status);
378+
ret = true;
379379
}
380380
else
381381
{

0 commit comments

Comments
 (0)