joyent/libuv — pull request #972 by loladiro (2013-10-26 21:43:14+00:00)
Title: unix: Move uv_shutdown assertion

Allows uv_shutdown to return an error as intended if the stream has already been closed.

Judging from the fact that the `if` statement checks for `UV_CLOSING`, I believe this to be the correct behavior.

Refs https://github.com/JuliaLang/julia/issues/4229