Skip to content

Commit 2a605c9

Browse files
Update src/app/CommandHandlerImpl.h
Co-authored-by: Terence Hampson <thampson@google.com>
1 parent ea62667 commit 2a605c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/CommandHandlerImpl.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ class CommandHandlerImpl : public CommandHandler
294294
{
295295
return CHIP_NO_ERROR;
296296
}
297-
// Here the err from previous step is returned intentionally if RollBackResonse fails due to
298-
// running out of packet buffers i.e due to CHIP_ERROR_NO_MEMORY in AllocateBuffer() and
299-
// fails to set the mRollBackBackupValid.
297+
// The error value of RollbackResponse is not important if it fails, we prioritize
298+
// conveying the error generated by addResponseFunction to the
299+
// caller.
300300
if (RollbackResponse() != CHIP_NO_ERROR)
301301
{
302302
return err;

0 commit comments

Comments
 (0)