Skip to content

Commit 1369489

Browse files
committed
Fix build on OpenBSD
1 parent f2c6abc commit 1369489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/lwan-io-wrappers.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ int lwan_sendfile_fd(struct lwan_request *request,
387387
offset += bytes_read;
388388

389389
blocks_sent++;
390-
if (blocks_sent & 3 == 0) {
391-
coro_yield(request->conn->coro, CONN_CORO_WRITE);
390+
if ((blocks_sent & 3) == 0) {
391+
coro_yield(request->conn->coro, CONN_CORO_WANT_WRITE);
392392
}
393393
}
394394

0 commit comments

Comments
 (0)