|author||Jeff Sharkey <email@example.com>||2012-10-24 17:18:32 -0700|
|committer||Jeff Sharkey <firstname.lastname@example.org>||2012-10-24 17:33:06 -0700|
Better sanity checking for finished downloads.
Downloads in the RUNNING state are considered ready to start so that downloads are correctly resumed when the process crashes. However, this causes a race condition while UpdateThread is processing a Cursor when a DownloadThread finishes. With this change, DownloadThread now skips requests for downloads already marked as finished. Apps listening for the DOWNLOAD_COMPLETE broadcast will no longer see data mutated by the second thread, and will not see the broadcast duplicated. Bug: 6948938, 6970458, 6818900 Change-Id: I35deac3cedbfe7f50091fab5818d85594dba558c
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions