Skip to content

Commit

Permalink
exit harbor before free socket
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Oct 11, 2014
1 parent c8b8dc1 commit 05f508f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skynet-src/skynet_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 05f508f

Please sign in to comment.