Add documentation
This commit is contained in:
parent
3108c9124a
commit
348dd5e6c0
2 changed files with 3 additions and 1 deletions
|
@ -142,6 +142,7 @@ class ComicGetter(threading.Thread):
|
|||
return allskipped
|
||||
|
||||
def stop(self):
|
||||
"""Mark this thread as stopped."""
|
||||
self.stopped = True
|
||||
|
||||
|
||||
|
@ -180,6 +181,7 @@ def getComics(options):
|
|||
|
||||
|
||||
def finish():
|
||||
"""Print warning about interrupt and empty the job queue."""
|
||||
out.warn("Interrupted!")
|
||||
for t in threads:
|
||||
t.stop()
|
||||
|
|
Loading…
Reference in a new issue