mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-30 06:14:25 +02:00
Only comments changes to better describe buffering cases.
This commit is contained in:
parent
d336ead3b1
commit
197a89a37a
@ -506,7 +506,8 @@ async function doMakeImage(task) {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
// hack for a middleman buffering all the streaming updates, and unleashing them on the poor browser in one shot.
|
// hack for a middleman buffering all the streaming updates, and unleashing them on the poor browser in one shot.
|
||||||
// this results in having to parse JSON like {"step": 1}{"step": 2}...{"status": "succeeded"..} which is obviously invalid.
|
// this results in having to parse JSON like {"step": 1}{"step": 2}{"step": 3}{"ste...
|
||||||
|
// which is obviously invalid and can happen at any point while rendering.
|
||||||
// So we need to extract only the next {} section
|
// So we need to extract only the next {} section
|
||||||
if (finalJSON.length > 0) {
|
if (finalJSON.length > 0) {
|
||||||
// Append new data when required
|
// Append new data when required
|
||||||
|
Loading…
Reference in New Issue
Block a user