bugfix: dead lock in drop queue

This commit is contained in:
云风
2012-08-31 23:12:44 +08:00
parent 243dc58c35
commit 4d1781fe39
4 changed files with 10 additions and 6 deletions

View File

@@ -72,10 +72,10 @@ 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) {
skynet_context_release(ctx);
s->slot[hash] = NULL;
int i;
int j=0, n=s->name_count;
for (i=0; i<n; ++i) {