summaryrefslogtreecommitdiff
path: root/scripts/update_payload/payload.py
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2017-10-23 13:47:57 -0700
committerSen Jiang <senj@google.com>2018-03-06 14:08:13 -0800
commit742419945993c362979859c9c367744a1744612a (patch)
treed81cb22e470494abfc8bbc84bdef1413d0983647 /scripts/update_payload/payload.py
parentde1685fd76c0742df848985bf448388583e1299e (diff)
Avoid terminating MultiRangeHttpFetcher twice.
If the delegate (DownloadAction) called TerminateTransfer() in the ReceivedBytes() callback, and we received all bytes of the current range, it will try to terminate again. This only happens if the base fetcher is FileFetcher, but not LibcurlHttpFetcher because LibcurlHttpFetcher can not terminate in a write callback, while FileFetcher doesn't have this limit. Bug: 68141222 Test: scripts/update_device.py dummy-ota-ab-small.dev.ab39d95e.zip --file Change-Id: Ibe228241055abfa50cb7b916f4216bb0ae3e54ab
Diffstat (limited to 'scripts/update_payload/payload.py')
0 files changed, 0 insertions, 0 deletions