diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-01-11 13:49:45 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-01-11 14:00:19 +0100 |
commit | 31fc52ab53b5dde882ebadbbc912c2848c7b6a83 (patch) | |
tree | 11aa3925416fc156a9ccee5f37415a31d9104c52 /deps/uv/src/unix/loop-watcher.c | |
parent | dc0c524ce681f53e2bd8f0974ed6aa3fd910054d (diff) | |
download | android-node-v8-31fc52ab53b5dde882ebadbbc912c2848c7b6a83.tar.gz android-node-v8-31fc52ab53b5dde882ebadbbc912c2848c7b6a83.tar.bz2 android-node-v8-31fc52ab53b5dde882ebadbbc912c2848c7b6a83.zip |
deps: upgrade libuv to 9aab5d4
Diffstat (limited to 'deps/uv/src/unix/loop-watcher.c')
-rw-r--r-- | deps/uv/src/unix/loop-watcher.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/uv/src/unix/loop-watcher.c b/deps/uv/src/unix/loop-watcher.c index 9d1414b846..a07569e403 100644 --- a/deps/uv/src/unix/loop-watcher.c +++ b/deps/uv/src/unix/loop-watcher.c @@ -31,6 +31,8 @@ \ int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \ if (uv__is_active(handle)) return 0; \ + if (cb == NULL) \ + return uv__set_artificial_error(handle->loop, UV_EINVAL); \ ngx_queue_insert_head(&handle->loop->name##_handles, &handle->queue); \ handle->name##_cb = cb; \ uv__handle_start(handle); \ @@ -49,7 +51,7 @@ ngx_queue_t* q; \ ngx_queue_foreach(q, &loop->name##_handles) { \ h = ngx_queue_data(q, uv_##name##_t, queue); \ - if (h->name##_cb) h->name##_cb(h, 0); \ + h->name##_cb(h, 0); \ } \ } \ \ |