Fix crash when subscribed connections are closed #155

master
Christian von Arnim 6 years ago
parent 91a8ea3a50
commit 95d1236b8c
No known key found for this signature in database
GPG Key ID: 12E6347C1B4EF014

@ -291,7 +291,8 @@ http_client_read(struct http_client *c) {
/* disconnect from all channels */
redisAsyncDisconnect(c->pub_sub->ac);
if(c->pub_sub) c->pub_sub->ac = NULL;
// c->pub_sub might be already cleared by an event handler in redisAsyncDisconnect
cmd->ac = NULL;
c->pub_sub = NULL;
/* delete command object */

Loading…
Cancel
Save