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

fix(net): ignore NotConnected error in NetworkStream.close #512

Merged
merged 1 commit into from
May 7, 2015

Conversation

seanmonstar
Copy link
Member

On OSX, calling shutdown a second time will return a NotConnected error.
This commit will just ignore it, since we can agree that if a stream is
"not connected", it is in fact "closed".

Closes #508

/cc @wezm


I couldn't decide whether to use conditional compilation to only do this on OSX, but eventually figured the reasoning in the commit message.

On OSX, calling shutdown a second time will return a NotConnected error.
This commit will just ignore it, since we can agree that if a stream is
"not connected", it is in fact "closed".

Closes #508
seanmonstar added a commit that referenced this pull request May 7, 2015
fix(net): ignore NotConnected error in NetworkStream.close
@seanmonstar seanmonstar merged commit 59f1b71 into master May 7, 2015
@seanmonstar seanmonstar deleted the osx-shutdown branch May 7, 2015 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple request always fails on Mac OS X
1 participant