nghttpx: Remove redundant check
This commit is contained in:
parent
2fa3d34af1
commit
2ff31bdd2b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue