commit | 036bc3e2cfc5a11c3f7ace41088c8936dae2e946 | [log] [tgz] |
---|---|---|
author | Igor Murashkin <iam@google.com> | Mon Oct 08 15:09:46 2012 -0700 |
committer | Igor Murashkin <iam@google.com> | Mon Oct 08 15:09:46 2012 -0700 |
tree | 1be259dbec33d2e33afe1104bb929cd0e37c18b2 | |
parent | 6f854608d26d7abcce5e46396c7260ed7b250653 [diff] |
Camera2: Always disconnect in the client destructor If Camera2Client failed to initialize, it would skip disconnect step, and thus the camera would be forever marked as busy. By always calling disconnect it will always call free. It also adds a new guarantee that Client::disconnect is idempotent Bug: 7298182 Change-Id: Ic9876f1665b7d9b3c0da692880f63f165e3f4fa5