Skip to content

Commit

Permalink
Add OperationalDeviceProxy::Disconnect() call in DefaultOTARequestor:…
Browse files Browse the repository at this point in the history
…:DisconnectFromProvider() to evict the session that we have conclusive evidence for indicating a lack of response from the peer. (#18642)
  • Loading branch information
isiu-apple authored May 20, 2022
1 parent f7a321d commit fd84c37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/clusters/ota-requestor/DefaultOTARequestor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ void DefaultOTARequestor::DisconnectFromProvider()
return;
}

mCASESessionManager->ReleaseSession(fabricInfo->GetPeerIdForNode(mProviderLocation.Value().providerNodeID));
PeerId peerID = fabricInfo->GetPeerIdForNode(mProviderLocation.Value().providerNodeID);
mCASESessionManager->FindExistingSession(peerID)->Disconnect();
mCASESessionManager->ReleaseSession(peerID);
}

// Requestor is directed to cancel image update in progress. All the Requestor state is
Expand Down

0 comments on commit fd84c37

Please sign in to comment.