Skip to content

Close of channel should not dispose ShellStream #672

@drieseng

Description

@drieseng

We currently dispose the ShellStream when the underlying channel is closed.
This can lead to a NullReferenceException in, for example, ShellStream.Expect(TimeSpan timeout, params ExpectAction[] expectActions).

In case of ReadLine(TimeSpan timeout), we should return null when the channel has been closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions