Skip to content

Commit

Permalink
Merge pull request cloudwu#82 from nopsky/master
Browse files Browse the repository at this point in the history
修改harbor_init里的一个小bug cloudwu#81
  • Loading branch information
cloudwu committed Apr 9, 2014
2 parents 3be4e3c + c18ea76 commit eebb701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service-src/service_harbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ harbor_init(struct harbor *h, struct skynet_context *ctx, const char * args) {
int harbor_id = 0;
sscanf(args,"%s %s %d",master_addr, local_addr, &harbor_id);
h->master_addr = strdup(master_addr);
h->id = harbor_id;
h->master_fd = _connect_to(h, master_addr, true);
if (h->master_fd == -1) {
fprintf(stderr, "Harbor: Connect to master failed\n");
exit(1);
}
h->local_addr = strdup(local_addr);
h->id = harbor_id;

_launch_gate(ctx, local_addr);
skynet_callback(ctx, h, _mainloop);
Expand Down

0 comments on commit eebb701

Please sign in to comment.