mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53: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);
|
||||
|
||||
_start(config->thread);
|
||||
|
||||
// harbor_exit may call socket send, so it should exit before socket_free
|
||||
skynet_harbor_exit();
|
||||
skynet_socket_free();
|
||||
if (config->daemon) {
|
||||
daemon_exit(config->daemon);
|
||||
}
|
||||
skynet_harbor_exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user