From e44063542621b4682ece305473320f6a03c94932 Mon Sep 17 00:00:00 2001 From: donnyjang Date: Sun, 4 Jan 2026 13:07:47 -0700 Subject: [PATCH] cleaned up progress module --- progress.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/progress.py b/progress.py index c3970b1..2f00ad6 100644 --- a/progress.py +++ b/progress.py @@ -3,7 +3,7 @@ import sys comfyui_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) if comfyui_root not in sys.path: sys.path.insert(0, comfyui_root) - + from server import PromptServer from io import BytesIO from PIL import Image, ImageOps @@ -26,15 +26,7 @@ _is_broadcasting = False # Prevent infinite recursion def patched_send_sync(event, data, sid=None): global _is_broadcasting - - # Debug: Log what events we're seeing - if event == 'progress': - print(f"[ImageLab DEBUG] Intercepted 'progress' event: {data}") - elif event == BinaryEventTypes.UNENCODED_PREVIEW_IMAGE: - print(f"[ImageLab DEBUG] Intercepted UNENCODED_PREVIEW_IMAGE") - elif event == BinaryEventTypes.PREVIEW_IMAGE_WITH_METADATA: - print(f"[ImageLab DEBUG] Intercepted PREVIEW_IMAGE_WITH_METADATA") - + # Always call original first _original_send_sync(event, data, sid)