From c50e465879f45087ee4775c690718314520dbef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Fri, 28 Sep 2012 17:52:54 +0800 Subject: [PATCH] bugfix: retire an unexist handle --- skynet-src/skynet_handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skynet-src/skynet_handle.c b/skynet-src/skynet_handle.c index fd6e4a5a..8d74416f 100644 --- a/skynet-src/skynet_handle.c +++ b/skynet-src/skynet_handle.c @@ -73,7 +73,7 @@ skynet_handle_retire(uint32_t handle) { uint32_t hash = handle & (s->slot_size-1); struct skynet_context * ctx = s->slot[hash]; - if (skynet_context_handle(ctx) == handle) { + if (ctx != NULL && skynet_context_handle(ctx) == handle) { skynet_context_release(ctx); s->slot[hash] = NULL; int i;