Skip to content

Commit 902fe43

Browse files
committed
power-policy-service: Call disconnect_chargers on detach
Make this path match other disconnect flows.
1 parent cf0b3ec commit 902fe43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

power-policy-service/src/consumer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ impl PowerPolicy {
266266
} else {
267267
// Notify disconnect if recently detached consumer was previously attached.
268268
if let Some(consumer_state) = state.current_consumer_state {
269+
self.disconnect_chargers().await?;
269270
self.comms_notify(CommsMessage {
270271
data: CommsData::ConsumerDisconnected(consumer_state.device_id),
271272
})

0 commit comments

Comments
 (0)