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
e4b6070c
Commit
e4b6070c
authored
Dec 09, 2019
by
antirez
Browse files
Modules: more clarification about disconnection callback.
parent
2271cf03
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
e4b6070c
...
@@ -4194,8 +4194,8 @@ void unblockClientFromModule(client *c) {
...
@@ -4194,8 +4194,8 @@ void unblockClientFromModule(client *c) {
/* Call the disconnection callback if any. Note that
/* Call the disconnection callback if any. Note that
* bc->disconnect_callback is set to NULL if the client gets disconnected
* bc->disconnect_callback is set to NULL if the client gets disconnected
* by the module itself, so the callback will NOT
get called if this is
* by the module itself
or because of a timeout
, so the callback will NOT
* not an actual disconnection event. */
*
get called if this is
not an actual disconnection event. */
if
(
bc
->
disconnect_callback
)
{
if
(
bc
->
disconnect_callback
)
{
RedisModuleCtx
ctx
=
REDISMODULE_CTX_INIT
;
RedisModuleCtx
ctx
=
REDISMODULE_CTX_INIT
;
ctx
.
blocked_privdata
=
bc
->
privdata
;
ctx
.
blocked_privdata
=
bc
->
privdata
;
...
...
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