Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0a2621c6
Unverified
Commit
0a2621c6
authored
Apr 15, 2021
by
Bonsai
Committed by
GitHub
Apr 14, 2021
Browse files
clean condition and variable store to nwritten that is never read (#8788)
parent
07601b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
0a2621c6
...
...
@@ -1550,9 +1550,7 @@ int writeToClient(client *c, int handler_installed) {
}
atomicIncr
(
server
.
stat_net_output_bytes
,
totwritten
);
if
(
nwritten
==
-
1
)
{
if
(
connGetState
(
c
->
conn
)
==
CONN_STATE_CONNECTED
)
{
nwritten
=
0
;
}
else
{
if
(
connGetState
(
c
->
conn
)
!=
CONN_STATE_CONNECTED
)
{
serverLog
(
LL_VERBOSE
,
"Error writing to client: %s"
,
connGetLastError
(
c
->
conn
));
freeClientAsync
(
c
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment