Commit ed19a582 by olly Committed by Oliver Woodman

Suppress source release failures.

This is similar to suppression of failures disabling the
renderers (in the block above).
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=123847812
parent 0565d8e1
...@@ -516,7 +516,12 @@ import java.util.concurrent.atomic.AtomicInteger; ...@@ -516,7 +516,12 @@ import java.util.concurrent.atomic.AtomicInteger;
} }
} }
if (source != null) { if (source != null) {
try {
source.release(); source.release();
} catch (RuntimeException e) {
// There's nothing we can do.
Log.e(TAG, "Source release failed.", e);
}
source = null; source = null;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment