mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
exit harbor before free socket
This commit is contained in:
@@ -232,9 +232,11 @@ skynet_start(struct skynet_config * config) {
|
|||||||
bootstrap(ctx, config->bootstrap);
|
bootstrap(ctx, config->bootstrap);
|
||||||
|
|
||||||
_start(config->thread);
|
_start(config->thread);
|
||||||
|
|
||||||
|
// harbor_exit may call socket send, so it should exit before socket_free
|
||||||
|
skynet_harbor_exit();
|
||||||
skynet_socket_free();
|
skynet_socket_free();
|
||||||
if (config->daemon) {
|
if (config->daemon) {
|
||||||
daemon_exit(config->daemon);
|
daemon_exit(config->daemon);
|
||||||
}
|
}
|
||||||
skynet_harbor_exit();
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user