summaryrefslogtreecommitdiff
path: root/downloader.lua
diff options
context:
space:
mode:
Diffstat (limited to 'downloader.lua')
-rw-r--r--downloader.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/downloader.lua b/downloader.lua
index 7881129..c96ba7b 100644
--- a/downloader.lua
+++ b/downloader.lua
@@ -46,8 +46,8 @@ function mt:exec(url, file, cb)
self.running = false
self:exec_next()
- if success and cb then
- cb(url, file)
+ if cb then
+ cb(success, url, file)
end
end)
end