MCPcopy
hub / github.com/pyload/pyload / abortDownload

Method abortDownload

module/PyFile.py:185–197  ·  view source on GitHub ↗

abort pyfile if possible

(self)

Source from the content-addressed store, hash-verified

183 }
184
185 def abortDownload(self):
186 """abort pyfile if possible"""
187 while self.id in self.m.core.threadManager.processingIds():
188 self.abort = True
189 if self.plugin and self.plugin.req:
190 self.plugin.req.abortDownloads()
191 sleep(0.1)
192
193 self.abort = False
194 if self.hasPlugin() and self.plugin.req:
195 self.plugin.req.abortDownloads()
196
197 self.release()
198
199 def finishIfDone(self):
200 """set status to finish and release file if every thread is finished with it"""

Callers 6

shutdownMethod · 0.80
stopAllDownloadsMethod · 0.80
stopDownloadsMethod · 0.80
deletePackageMethod · 0.80
deleteLinkMethod · 0.80
restartFileMethod · 0.80

Calls 4

hasPluginMethod · 0.95
releaseMethod · 0.95
processingIdsMethod · 0.80
abortDownloadsMethod · 0.45

Tested by

no test coverage detected