Skip to content

Commit 2415e8d

Browse files
[ota-requestor] Reset to Idle on failed NotifyUpdateApplied (#22131)
Reset to Idle state on connection failure when trying to send NotifyUpdateApplied command. Signed-off-by: Damian Krolik <[email protected]> Signed-off-by: Damian Krolik <[email protected]>
1 parent bf75296 commit 2415e8d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/app/clusters/ota-requestor/DefaultOTARequestor.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -492,12 +492,9 @@ void DefaultOTARequestor::OnConnectionFailure(void * context, const ScopedNodeId
492492
switch (requestorCore->mOnConnectedAction)
493493
{
494494
case kQueryImage:
495-
requestorCore->RecordErrorUpdateState(error);
496-
break;
497495
case kDownload:
498-
requestorCore->RecordErrorUpdateState(error);
499-
break;
500496
case kApplyUpdate:
497+
case kNotifyUpdateApplied:
501498
requestorCore->RecordErrorUpdateState(error);
502499
break;
503500
default:

0 commit comments

Comments
 (0)