Skip to content

Commit fa864f3

Browse files
committed
Only update state if apply succeeds
1 parent 9f27f86 commit fa864f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/audio_device/audio_engine_device.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,10 +1416,10 @@
14161416
LOGE() << "ModifyEngineState: Buffer should not be recording when input is disabled";
14171417
}
14181418
}
1419-
}
14201419

1421-
// Update engine state
1422-
engine_state_ = new_state;
1420+
// Update engine state if no error
1421+
engine_state_ = new_state;
1422+
}
14231423

14241424
return return_result;
14251425
}

0 commit comments

Comments
 (0)