bugfix: dead lock when service_harbor exit

This commit is contained in:
Cloud Wu
2014-06-30 11:31:24 +08:00
parent f4d865a882
commit 1e0189962b

View File

@@ -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);