forked from extern/easydiffusion
Pause button - check whether function is defined before calling it
This commit is contained in:
parent
c568bca69e
commit
38951f5581
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user