|author||Steve Howard <email@example.com>||2010-07-20 12:04:02 -0700|
|committer||Steve Howard <firstname.lastname@example.org>||2010-07-20 12:04:02 -0700|
Fix bug with deciding when to restart a download.
In previous refactoring I had combined the code for starting a download (from DownloadService.insertDownload()) and restarting a download (from DownloadService.updateDownload()). I'd missed the fact that the former checks DownloadInfo.isReadyToStart() while the latter checks DownloadInfo.isReadyToRestart(). This cause a race condition where multiple startService() calls during a download would cause the service to try to spawn a second thread for the same running download. I've fixed the bug and added a test case to exercise this. Change-Id: Ia968331a030137daac7c8b5792a01e3e19065b38
Diffstat (limited to 'tests/Android.mk')
0 files changed, 0 insertions, 0 deletions