X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7156f43c040414494829a8dcd4a7be4c26d241d8..7229d60d0356e94f553623e0492f636687ac39e6:/src/networking.c diff --git a/src/networking.c b/src/networking.c index 5f0d1b25..976b472a 100644 --- a/src/networking.c +++ b/src/networking.c @@ -57,7 +57,7 @@ redisClient *createClient(int fd) { c->pubsub_patterns = listCreate(); listSetFreeMethod(c->pubsub_patterns,decrRefCount); listSetMatchMethod(c->pubsub_patterns,listMatchObjects); - listAddNodeTail(server.clients,c); + if (fd != -1) listAddNodeTail(server.clients,c); initClientMultiState(c); return c; }