Skip to content

End of stream event not fired #17

@rodklerc

Description

@rodklerc

Consider the following example code:

    var query = {departureStop: ..., departureTime: ...};
    var fetcher = new Fetcher(...);
    var planner = new BasicCSA(query);
    fetcher.buildConnectionsStream(query, function (connectionsStream) {
      connectionsStream.pipe(planner).on('end', function () { console.log('stream ended'); });
    }

The line "console.log('stream ended');" is never executed, indicating that the stream generated by the planner has not ended.

Commenting out lines 116-121 in BasicCSA.js temporarily fixes this problem.

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