mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add comment to explain why cancel exceptions are handled differently
PiperOrigin-RevId: 493260798
This commit is contained in:
parent
bb2c4c2eff
commit
00859a78fd
1 changed files with 2 additions and 0 deletions
|
|
@ -334,6 +334,8 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
TransformationException.createForMuxer(e, ERROR_CODE_MUXING_FAILED);
|
TransformationException.createForMuxer(e, ERROR_CODE_MUXING_FAILED);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
releaseTransformationException = TransformationException.createForUnexpected(e);
|
releaseTransformationException = TransformationException.createForUnexpected(e);
|
||||||
|
// cancelException is not reported through a listener. It is thrown in cancel(), as this
|
||||||
|
// method is blocking.
|
||||||
cancelException = e;
|
cancelException = e;
|
||||||
}
|
}
|
||||||
// Quit thread lazily so that all events that got triggered when releasing the AssetLoader are
|
// Quit thread lazily so that all events that got triggered when releasing the AssetLoader are
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue