Skip to content

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