mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: dead lock in drop queue
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user