| commit | a8004fee4e1998fd523e8fbd93e7de4bcf372609 | [log] [tgz] |
|---|---|---|
| author | Ernest Hua <ernesthua@google.com> | Wed Dec 07 14:09:18 2022 -0800 |
| committer | releases-try-builder <releases-try-builder@fuchsia-infra.iam.gserviceaccount.com> | Thu Dec 08 17:46:00 2022 +0000 |
| tree | 2ce52b21ea584e4ebcfcbc5b7733d080afa11726 | |
| parent | 12e6fa8babc500a4345da29af80e16e3dc23d804 [diff] |
[camera] Avoid calling GetDeviceInfo twice GetDeviceInfo to camera controller was being called twice using two separate connections. Creating a 2nd connection means that the 2nd connection is vulnerable to the 1st connection not necessarily completely disconnected. Also, there is no reason to call the same FIDL call twice when expecting the results to be the same. The call is a query for static information. One call is enough. Bug: fxb/111252 Test: Run 500 cycles to ensure zero SetUI camera probe failures. Change-Id: If3405dbe524b507144bcee61ef8705489445f66a
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.