summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2022-04-05 13:00:54 -0700
committerGitHub <noreply@github.com>2022-04-05 13:00:54 -0700
commitd7683f35aa66e222aad07caf5b345393d0c1b9f1 (patch)
treecdc6d41dab376796f35979e0d53ab578e4e76d55 /async.h
parent7c44a9d7ecf113beb9447e62dd34fb45378bf6da (diff)
parent7123b87f6d237e0ddf75c9698b2961e2d102a69d (diff)
Merge pull request #1047 from Nordix/unsubscribe-handling
Unsubscribe handling in async
Diffstat (limited to 'async.h')
-rw-r--r--async.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/async.h b/async.h
index 4c65203..41951d4 100644
--- a/async.h
+++ b/async.h
@@ -46,6 +46,7 @@ typedef struct redisCallback {
struct redisCallback *next; /* simple singly linked list */
redisCallbackFn *fn;
int pending_subs;
+ int unsubscribe_sent;
void *privdata;
} redisCallback;
@@ -105,6 +106,7 @@ typedef struct redisAsyncContext {
redisCallbackList replies;
struct dict *channels;
struct dict *patterns;
+ int pending_unsubs;
} sub;
/* Any configured RESP3 PUSH handler */