mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-07-01 07:01:06 +02:00
Use onIdle(), move pause button, quick resume without using the promise
This commit is contained in:
@ -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.`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user