exit harbor before free socket

This commit is contained in:
Cloud Wu
2014-10-11 13:37:40 +08:00
parent c8b8dc1276
commit 05f508fb42

View File

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