]> git.saurik.com Git - redis.git/blobdiff - src/pubsub.c
replaced redisAssert() with redisAssertWithInfo() in a shitload of places.
[redis.git] / src / pubsub.c
index 728e559c9e4c563067c5fd2ce8417fc9ec0b5061..7a45e029a215a94c649c17077b751cc2fa743e8e 100644 (file)
@@ -63,10 +63,10 @@ int pubsubUnsubscribeChannel(redisClient *c, robj *channel, int notify) {
         retval = 1;
         /* Remove the client from the channel -> clients list hash table */
         de = dictFind(server.pubsub_channels,channel);
-        redisAssert(de != NULL);
+        redisAssertWithInfo(c,NULL,de != NULL);
         clients = dictGetEntryVal(de);
         ln = listSearchKey(clients,c);
-        redisAssert(ln != NULL);
+        redisAssertWithInfo(c,NULL,ln != NULL);
         listDelNode(clients,ln);
         if (listLength(clients) == 0) {
             /* Free the list and associated hash entry at all if this was