nghttpx: Remove redundant check

This commit is contained in:
Tatsuhiro Tsujikawa 2016-11-26 22:34:24 +09:00
parent 2fa3d34af1
commit 2ff31bdd2b

View File

@ -305,13 +305,6 @@ int MemcachedConnection::write_tls() {
return 0;
}
if (sendq_.empty()) {
conn_.wlimit.stopw();
ev_timer_stop(conn_.loop, &conn_.wt);
return 0;
}
conn_.last_read = ev_now(conn_.loop);
std::array<struct iovec, MAX_WR_IOVCNT> iov;
@ -379,13 +372,6 @@ int MemcachedConnection::write_clear() {
return 0;
}
if (sendq_.empty()) {
conn_.wlimit.stopw();
ev_timer_stop(conn_.loop, &conn_.wt);
return 0;
}
conn_.last_read = ev_now(conn_.loop);
std::array<struct iovec, MAX_WR_IOVCNT> iov;