mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 11:55:30 -04:00
Fix incorrect variable in MangaDex::Downloader (@stop -> @stopped)
This commit is contained in:
parent
f140ffa4b2
commit
dfd53bc51d
@ -284,7 +284,7 @@ module MangaDex
|
|||||||
end
|
end
|
||||||
|
|
||||||
private def download(job : Job)
|
private def download(job : Job)
|
||||||
@stop = true
|
@stopped = true
|
||||||
@queue.set_status JobStatus::Downloading, job
|
@queue.set_status JobStatus::Downloading, job
|
||||||
begin
|
begin
|
||||||
chapter = @api.get_chapter(job.id)
|
chapter = @api.get_chapter(job.id)
|
||||||
@ -294,7 +294,7 @@ module MangaDex
|
|||||||
unless e.message.nil?
|
unless e.message.nil?
|
||||||
@queue.add_message e.message.not_nil!, job
|
@queue.add_message e.message.not_nil!, job
|
||||||
end
|
end
|
||||||
@stop = false
|
@stopped = false
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@queue.set_pages chapter.pages.size, job
|
@queue.set_pages chapter.pages.size, job
|
||||||
@ -359,7 +359,7 @@ module MangaDex
|
|||||||
else
|
else
|
||||||
@queue.set_status JobStatus::MissingPages, job
|
@queue.set_status JobStatus::MissingPages, job
|
||||||
end
|
end
|
||||||
@stop = false
|
@stopped = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user