mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
NNTP: Use state instead of conn->state, since it hasn't been updated yet
Fixes: 1735f96a87
This commit is contained in:
parent
1735f96a87
commit
4bfd40ec10
@ -217,11 +217,11 @@ nntp_end_request(struct connection *conn, enum connection_state state)
|
||||
return;
|
||||
}
|
||||
|
||||
if (conn->state == S_OK) {
|
||||
if (state == S_OK) {
|
||||
if (conn->cached) {
|
||||
normalize_cache_entry(conn->cached, conn->from);
|
||||
}
|
||||
} else if (conn->state == S_OUT_OF_MEM) {
|
||||
} else if (state == S_OUT_OF_MEM) {
|
||||
/* FIXME: Clear the socket buffers before ending so the one
|
||||
* grabing the keepalive connection will be able to go on. */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user