From 8b65d03e17b76c9828eaf0f670c9b30cd4deec71 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 13 Oct 2016 17:00:29 +0200 Subject: [PATCH] Modules: use RedisModule_AbortBlock() in the example. --- src/modules/helloblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/helloblock.c b/src/modules/helloblock.c index f76b3beb5..71ec9b121 100644 --- a/src/modules/helloblock.c +++ b/src/modules/helloblock.c @@ -99,7 +99,7 @@ int HelloBlock_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int a targ[1] = (void*)(unsigned long) delay; if (pthread_create(&tid,NULL,HelloBlock_ThreadMain,targ) != 0) { - /* RedisModule_BlockedClientAbort(bc); */ + RedisModule_AbortBlock(bc); return RedisModule_ReplyWithError(ctx,"-ERR Can't start thread"); } return REDISMODULE_OK;