Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: clean up messy code

  • Loading branch information...
ry committed Oct 6, 2011
1 parent 60c639f commit e3bcecdc425167a2c3b32ec7afced5bf1cabb384
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/unix/stream.c
@@ -907,14 +907,11 @@ int uv_read2_start(uv_stream_t* stream, uv_alloc_cb alloc_cb,


int uv_read_stop(uv_stream_t* stream) {
uv_tcp_t* tcp = (uv_tcp_t*)stream;

((uv_handle_t*)tcp)->flags &= ~UV_READING;

ev_io_stop(tcp->loop->ev, &tcp->read_watcher);
tcp->read_cb = NULL;
tcp->read2_cb = NULL;
tcp->alloc_cb = NULL;
ev_io_stop(stream->loop->ev, &stream->read_watcher);
stream->flags &= ~UV_READING;
stream->read_cb = NULL;
stream->read2_cb = NULL;
stream->alloc_cb = NULL;
return 0;
}

0 comments on commit e3bcecd

Please sign in to comment.
You can’t perform that action at this time.