Skip to content

runtime.isStarted returns true before flows are loaded #902

Closed
@gavinhungry

Description

@gavinhungry

The start and stop methods for the runtime object set the value of started before the actual flows are started (or even loaded) or stopped. This results in isStarted returning true before the flows have even loaded.

The value should be set after the startFlows/stopFlows promises resolve to avoid this issue, unless there is a reason for it to behave this way?

runtime.start:
https://github.com/node-red/node-red/blob/0.13.4/red/runtime/index.js#L146,L147

runtime.stop:
https://github.com/node-red/node-red/blob/0.13.4/red/runtime/index.js#L179,L180

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