clean condition and variable store to nwritten that is never read (#8788)
This commit is contained in:
parent
0d8cd01476
commit
eb08b431fe
@ -1550,9 +1550,7 @@ int writeToClient(client *c, int handler_installed) {
|
|||||||
}
|
}
|
||||||
atomicIncr(server.stat_net_output_bytes, totwritten);
|
atomicIncr(server.stat_net_output_bytes, totwritten);
|
||||||
if (nwritten == -1) {
|
if (nwritten == -1) {
|
||||||
if (connGetState(c->conn) == CONN_STATE_CONNECTED) {
|
if (connGetState(c->conn) != CONN_STATE_CONNECTED) {
|
||||||
nwritten = 0;
|
|
||||||
} else {
|
|
||||||
serverLog(LL_VERBOSE,
|
serverLog(LL_VERBOSE,
|
||||||
"Error writing to client: %s", connGetLastError(c->conn));
|
"Error writing to client: %s", connGetLastError(c->conn));
|
||||||
freeClientAsync(c);
|
freeClientAsync(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user