mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
Fix comfy request abort
This commit is contained in:
parent
9710d88a88
commit
26030f6ee4
@ -533,6 +533,7 @@ comfy.post('/delete-workflow', jsonParser, async (request, response) => {
|
||||
|
||||
comfy.post('/generate', jsonParser, async (request, response) => {
|
||||
try {
|
||||
let item;
|
||||
const url = new URL(urlJoin(request.body.url, '/prompt'));
|
||||
|
||||
const controller = new AbortController();
|
||||
@ -557,7 +558,6 @@ comfy.post('/generate', jsonParser, async (request, response) => {
|
||||
/** @type {any} */
|
||||
const data = await promptResult.json();
|
||||
const id = data.prompt_id;
|
||||
let item;
|
||||
const historyUrl = new URL(urlJoin(request.body.url, '/history'));
|
||||
while (true) {
|
||||
const result = await fetch(historyUrl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user