Fixed bug in socket write error handling.

The bug has been introduced in e3972a4a9c73.
This commit is contained in:
Igor Sysoev
2018-09-28 15:12:47 +03:00
parent 425d560372
commit 92da8dae1e

View File

@@ -127,7 +127,9 @@ nxt_conn_io_write(nxt_task_t *task, void *obj, void *data)
return;
}
/* ret == NXT_ERROR */
if (ret != NXT_ERROR) {
return;
}
nxt_fd_event_block_write(engine, &c->socket);