We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64952a3 commit 671c0a3Copy full SHA for 671c0a3
electron_app/src/StableDiffusion.vue
@@ -151,6 +151,9 @@ export default {
151
this.remaining_times = compute_time_remaining(time_remaining);
152
clearInterval(this.generation_loop);
153
this.generation_loop = setInterval(() => {
154
+ if(this.attached_cbs == undefined){
155
+ return clearInterval(this.generation_loop);
156
+ }
157
time_remaining.subtract(1, 'seconds');
158
159
}, 1000);
@@ -167,8 +170,8 @@ export default {
167
170
} ,
168
171
169
172
interupt(){
- send_to_py("t2im __stop__")
- clearInterval(this.generation_loop);
173
+ send_to_py("t2im __stop__")
174
+ this.attached_cbs = undefined;
175
},
176
177
text_to_img(prompt_params, callbacks, generated_by){
0 commit comments