win, pipe: fix assertion when destroying timer

PR-URL: https://github.com/libuv/libuv/pull/167
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Andrius Bentkus 2015-01-27 11:44:31 +01:00 committed by Ben Noordhuis
parent 60b581fb5a
commit 150dfdd0b8

View File

@ -1848,7 +1848,7 @@ static void eof_timer_cb(uv_timer_t* timer) {
static void eof_timer_destroy(uv_pipe_t* pipe) {
assert(pipe->flags && UV_HANDLE_CONNECTION);
assert(pipe->flags & UV_HANDLE_CONNECTION);
if (pipe->eof_timer) {
uv_close((uv_handle_t*) pipe->eof_timer, eof_timer_close_cb);