defer free
Former-commit-id: de4217489c87cd8347ecdb7f4df5c3b7615330d6
This commit is contained in:
parent
af06ffa43a
commit
26c97eafe2
@ -1173,13 +1173,8 @@ void disconnectSlaves(void) {
|
|||||||
listRewind(server.slaves, &li);
|
listRewind(server.slaves, &li);
|
||||||
while ((ln = listNext(&li))) {
|
while ((ln = listNext(&li))) {
|
||||||
client *c = (client*)listNodeValue(ln);
|
client *c = (client*)listNodeValue(ln);
|
||||||
if (FCorrectThread(c)) {
|
|
||||||
freeClient(c);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
freeClientAsync(c);
|
freeClientAsync(c);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the specified client from global lists where the client could
|
/* Remove the specified client from global lists where the client could
|
||||||
|
Loading…
x
Reference in New Issue
Block a user