Skip to content

Properly wind down all spawned tasks on any startup error #1009

Closed

Description

@tankyleo

At the moment if we fail to bind to any of our listening addresses, we return a startup error, but do not properly wind down the wallet sync, RGS, and pathfinding scores tasks, which are started before we attempt to bind our listeners.

Activity

  1. Jolah1 commented on Aug 10, 2026

    @Jolah1
    Contributor

    can i take this?

    Confirmed the shape: start()'s error arm (lib.rs:294-300) only calls chain_source.stop(), while start_inner has already spawned the wallet-sync, RGS and scores tasks by the time the listener bind can fail.

  2. added a commit that references this issue on Sep 11, 2026
    6d702c3
  3. added a commit that references this issue on Sep 21, 2026
    f44e9cf
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