()
| 413 | } |
| 414 | |
| 415 | unsuspend() { |
| 416 | if (this.status != "suspend") return; |
| 417 | if (this.files.size > 0) { |
| 418 | this.status = "working"; |
| 419 | for (const uploadTask of this.task) { |
| 420 | if (!uploadTask) continue; |
| 421 | uploadTask.status = "pending"; |
| 422 | } |
| 423 | } |
| 424 | this.update(); |
| 425 | } |
| 426 | |
| 427 | async stop() { |
| 428 | if (this.status == "stopped") return; |