Skip to content

Reset QR server state after shutdown #11

Description

@cubrift

Problem

stopQRHost() in QRHost.js closes the HTTP server but never sets the server variable back to null. During a rapid reconnect, a new QR server can be requested while the previous server is still closing, which may lead to a port conflict or stale server state.

Expected behavior

After the QR host stops, the module should be ready to start a fresh server cleanly.

Acceptance criteria

  • The server reference is cleared when shutdown begins or completes.
  • A new QR session can start after a previous session stops without reusing stale state.
  • currentQrData remains cleared after shutdown.
  • Repeated calls to stopQRHost() are harmless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodexUse for codex-generated issues only.good first issueGood for newcomerswontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions