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
|
return allskipped
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
"""Mark this thread as stopped."""
|
||||||
self.stopped = True
|
self.stopped = True
|
||||||
|
|
||||||
|
|
||||||
|
@ -180,6 +181,7 @@ def getComics(options):
|
||||||
|
|
||||||
|
|
||||||
def finish():
|
def finish():
|
||||||
|
"""Print warning about interrupt and empty the job queue."""
|
||||||
out.warn("Interrupted!")
|
out.warn("Interrupted!")
|
||||||
for t in threads:
|
for t in threads:
|
||||||
t.stop()
|
t.stop()
|
||||||
|
|
Loading…
Reference in a new issue