abort pyfile if possible
(self)
| 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""" |
no test coverage detected