Use onIdle(), move pause button, quick resume without using the promise

This commit is contained in:
JeLuF
2022-12-11 14:57:01 +01:00
parent e6346775e7
commit bd1bc78953
4 changed files with 38 additions and 16 deletions

View File

@ -437,9 +437,6 @@
* @memberof Task
*/
async post(url, timeout=-1) {
if (typeof pauseClient != 'undefined' && pauseClient===true && typeof resumeClient === 'function') {
await resumeClient()
}
if(this.status !== TaskStatus.init && this.status !== TaskStatus.pending) {
throw new Error(`Task status ${this.status} is not valid for post.`)
}