Modules hooks: don't call the hook for fake clients.
This commit is contained in:
parent
83de18805c
commit
8cccc6b468
@ -1043,9 +1043,13 @@ void freeClient(client *c) {
|
|||||||
freeClientAsync(c);
|
freeClientAsync(c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
moduleFireServerEvent(REDISMODULE_EVENT_CLIENT_CHANGE,
|
|
||||||
REDISMODULE_SUBEVENT_CLIENT_CHANGE_DISCONNECTED,
|
/* For connected clients, call the disconnection event of modules hooks. */
|
||||||
c);
|
if (c->conn) {
|
||||||
|
moduleFireServerEvent(REDISMODULE_EVENT_CLIENT_CHANGE,
|
||||||
|
REDISMODULE_SUBEVENT_CLIENT_CHANGE_DISCONNECTED,
|
||||||
|
c);
|
||||||
|
}
|
||||||
|
|
||||||
/* If it is our master that's beging disconnected we should make sure
|
/* If it is our master that's beging disconnected we should make sure
|
||||||
* to cache the state to try a partial resynchronization later.
|
* to cache the state to try a partial resynchronization later.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user