mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

We currently only catch IOExceptions to close the opened data source. This means any other type of exception leaves the data source open, which can caused SimpleCache to be blocked forever when another data source tries to access the same cache area (which is still locked by the open data source). This problem was the cause for flakiness in DownloadManagerDashTest. #cherrypick Issue: google/ExoPlayer#9760 PiperOrigin-RevId: 729441817