commit | e6ba455908df55be910d9a5a9f3d06713830c95c | [log] [tgz] |
---|---|---|
author | Constantin Musca <constantin.musca@intel.com> | Mon Dec 07 12:56:03 2015 +0200 |
committer | Constantin Musca <constantin.musca@intel.com> | Wed Dec 09 13:33:04 2015 +0200 |
tree | 087ef60fad1c93ff2a86dac5cd6b2e174a9c5a2f | |
parent | bb2c969d71d8c801f4330bca8d90b033d58b5242 [diff] |
sensors: clean up sensor if activate fails and catch all exceptions Free sensor resources if the activate function fails. Catch all exceptions (not only std::runtime_error) because the upper layer doesn't expect them. BUG=26084010 Tracked-On: https://jira01.devtools.intel.com/browse/BP-157 Change-Id: Ide399e32a85c858cb407010675d90c7997b0cc9d Signed-off-by: Constantin Musca <constantin.musca@intel.com>