diff options
-rw-r--r-- | src/uv_link_t.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uv_link_t.c b/src/uv_link_t.c index 32c676e..78ada82 100644 --- a/src/uv_link_t.c +++ b/src/uv_link_t.c @@ -101,7 +101,8 @@ int uv_link_read_start(uv_link_t* link) { int uv_link_read_stop(uv_link_t* link) { if (link == NULL) return uv_link_error(link, UV_EFAULT); - CLOSE_WRAP(link->methods->read_stop(link)); + if (NULL != link->methods->read_stop) + CLOSE_WRAP(link->methods->read_stop(link)); } |