Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close of channel should not dispose ShellStream #672

Closed
drieseng opened this issue May 2, 2020 · 1 comment · Fixed by #1322
Closed

Close of channel should not dispose ShellStream #672

drieseng opened this issue May 2, 2020 · 1 comment · Fixed by #1322
Labels
Milestone

Comments

@drieseng
Copy link
Member

drieseng commented May 2, 2020

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.

@WojciechNagorski
Copy link
Collaborator

This issue has been fixed in the 2024.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants