# HG changeset patch # User Matthew Wild # Date 1262412379 0 # Node ID a20981a6d88b57d94d39fd8cfbbe70b9e4205931 # Parent 0521ed5b2598836cf5475ff44f774db29552f7d8 multihttp: Don't renew timer for progress callback after download completion diff -r 0521ed5b2598 -r a20981a6d88b libs/multihttp.lua --- a/libs/multihttp.lua Sat Jan 02 06:05:26 2010 +0000 +++ b/libs/multihttp.lua Sat Jan 02 06:06:19 2010 +0000 @@ -18,7 +18,7 @@ timer.add_task(delay, function () if batch.progress_callback then batch.progress_callback(batch); - if batch.progress_callback then + if batch.progress_callback and batch.status ~= "complete" then return delay; end end