mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-15 10:49:44 +02:00
Pause button - check whether function is defined before calling it
This commit is contained in:
@ -437,7 +437,7 @@
|
|||||||
* @memberof Task
|
* @memberof Task
|
||||||
*/
|
*/
|
||||||
async post(url, timeout=-1) {
|
async post(url, timeout=-1) {
|
||||||
if (typeof pauseClient != 'undefined' && pauseClient===true) {
|
if (typeof pauseClient != 'undefined' && pauseClient===true && typeof resumeClient === 'function') {
|
||||||
await resumeClient()
|
await resumeClient()
|
||||||
}
|
}
|
||||||
if(this.status !== TaskStatus.init && this.status !== TaskStatus.pending) {
|
if(this.status !== TaskStatus.init && this.status !== TaskStatus.pending) {
|
||||||
|
Reference in New Issue
Block a user