Prevent Reset failures due to StopCapturingAudio

If StopCapturingAudio raises an exception, this will interrupt the Reset
process and leave the Chamelium device in a bad state. StopCapturingAudio can
raise an exception e.g. if no audio data has been captured.

Treat StopCapturingAudio errors as non-fatal by logging them.

BUG=chromium:955999
TEST=Call StartCapturingAudio without playing audio, then call Reset

Change-Id: I9cb98fe9e6fcd439c7ecd0d3d346881cc6365a65
Reviewed-on: https://chromium-review.googlesource.com/1583770
Commit-Ready: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
1 file changed