diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-10-22 16:25:58 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-10-22 16:25:58 +0300 |
commit | deeb276d2386b90e695fc0650bfb7e08806264ee (patch) | |
tree | bbe7338abd4cbfc1ba345374cbe4cae941d393ac | |
parent | da0ef366dc1affa740618eb4f4baa8bbb62f8d70 (diff) | |
download | unit-deeb276d2386b90e695fc0650bfb7e08806264ee.tar.gz unit-deeb276d2386b90e695fc0650bfb7e08806264ee.tar.bz2 |
Removed duplicate code in epoll.
This commit is related to #173 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to '')
-rw-r--r-- | src/nxt_epoll_engine.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nxt_epoll_engine.c b/src/nxt_epoll_engine.c index 68e8d609..bc606d7a 100644 --- a/src/nxt_epoll_engine.c +++ b/src/nxt_epoll_engine.c @@ -942,8 +942,6 @@ nxt_epoll_poll(nxt_event_engine_t *engine, nxt_msec_t timeout) ev->read = NXT_EVENT_DISABLED; } - error = 0; - nxt_work_queue_add(ev->read_work_queue, ev->read_handler, ev->task, ev, ev->data); @@ -962,8 +960,6 @@ nxt_epoll_poll(nxt_event_engine_t *engine, nxt_msec_t timeout) ev->write = NXT_EVENT_DISABLED; } - error = 0; - nxt_work_queue_add(ev->write_work_queue, ev->write_handler, ev->task, ev, ev->data); @@ -972,11 +968,6 @@ nxt_epoll_poll(nxt_event_engine_t *engine, nxt_msec_t timeout) nxt_epoll_disable_write(engine, ev); } } - - if (error) { - ev->read_ready = 1; - ev->write_ready = 1; - } } } |