Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Live Preview: shutdown server once Live Previewing is over. #11108

@busykai

Description

@busykai

The server is not being shutdown after Live Preview is over. This is true both for CDT-based preview and the multi-browser version.

To reproduce:

  1. Open Live Preview.
  2. From the browser that has opened, copy the URL.
  3. Close Live Preview (either close the browser or from within the editor).
  4. Open a browser, paste the URL and press enter.

Result: the recently previewed page opens (not instrumented)

Expected: connection could not be established

There's no good reason to keep the server socket listening. Once the Live Preview is shut down, the server should be shut down as well.

CC:@sebaslv

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions