diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-28 20:29:26 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-28 20:29:29 +0100 |
commit | 29ea901b243265b209271775540d22701f337d57 (patch) | |
tree | 827c503a6dbaa7152bf8ac120dd8b5c8f1cee5c2 /example-libevent.c | |
parent | c882a3621a7354316b6bd9595edf096ff850a1a9 (diff) |
Fix the async free() and disconnect() functions
To make sure that these functions can also be called from functions
other than command callbacks, the flag IN_CALLBACK is introduced that
holds whether the context is currently executing a callback. If so,
redisAsyncFree() and redisAsyncDisconnect() should delegate their task
to the reply processor to avoid segfaults.
Diffstat (limited to 'example-libevent.c')
0 files changed, 0 insertions, 0 deletions