mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-27 10:00:40 +00:00
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
Block a user