mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
bugfix: dead lock when service_harbor exit
This commit is contained in:
@@ -262,7 +262,8 @@ harbor_release(struct harbor *h) {
|
||||
struct slave *s = &h->s[i];
|
||||
if (s->fd && s->status != STATUS_DOWN) {
|
||||
close_harbor(h,i);
|
||||
report_harbor_down(h,i);
|
||||
// don't call report_harbor_down.
|
||||
// never call skynet_send during module exit, because of dead lock
|
||||
}
|
||||
}
|
||||
hash_delete(h->map);
|
||||
|
||||
Reference in New Issue
Block a user