Skip to content

Closing Desktop while ComfyUI is starting takes ~14 s #1651

Open

Description

@synap5e

Closing Comfy Desktop while ComfyUI is still starting takes about 14 seconds before the window goes away.

Steps

  1. Launch an install on Windows.
  2. Close the window (✕) about 1 s after ComfyUI starts.

Expected: Desktop stops ComfyUI and exits within a second or two.
Actual: Desktop first waits for ComfyUI to finish booting (its port to come up), and only then stops it. Measured 14.2-14.7 s with ✕ at ~1 s after spawn, and 12.4-13.2 s with ✕ 6 s after launch. The same on current main and with #1625, so this isn't new.

During that time the window looks like it won't close.

Possible direction: on quit during boot, cancel the port wait and stop the process tree right away.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions